Use the arrows to move and space to attack.
I see the idea from @prozamal and make the code alone in retro style.