WASD to move, SPACE to shoot. Breaking asteroids gives you points. If you run out of points, or run into an asteroid, you die.
My teacher told us how to do it but I changed, simplified, and improved a lot of stuff.