Do not touch the obstacles otherwise you lose. Down arrow: Duck. Space key: Jump. Once the game ends, press the flag to try again
I plan on doing a more fun version, say, with coins to collect. Basically, some additions. Please leave comments about what I should fix and I will try to reply and tell you whether I can fix it or not.