Use WASD or arrows to move and you can probably guess what to do.
deathballplayer did all the coding, I just remixed.