I'd like to point out some things (not that I'm that experienced at making games):
1. Audio - no matter how simple a game may be, having audio would be more player-engaging.
2. Might be better if the attack input is mouse left click.
3. Maybe tone down the randomness of the enemy attacks.
There's much to change but, hey, we all need to start at something. Good luck on your journey!