The goal of the game is to pass the lasers and get to the key. You can use the arrows to move, with space to jump over the lasers. If you hit a laser it will automatically restart. If you get the key you have to hit the green flag.
All coding except for the automatic restart was done by yavinagam.