You are probably familiar with top-down-view games like Asteroids, in which a spaceship can be controlled with the arrow keys. It rotates and you can shoot. This file contains the absolute basics needed to make something like that work.