Arrow keys to move, space bar to shoot.
This project is an example of how to program an end to your game. It waits until the score is above 20 or under -5, and then the game ends with a victory or a loss.