Arrow keys and using your brain.
I just made it myself and no borrowed code. If any bugs including the enemy just refresh. 1645!!! blocks!!!!