W to go up, S to go down. Don't touch the green!!! When you lose, just press stop and start again!!!
"CODE YOUR OWN GAMES! By William Wainewright. I used this game example but made it better.