Use arrow keys. R to restart a level. You may need to click the flag twice. There are a few glitches, especially on Level 6
Thanks to _silverstream-pool_ and Tsunami19 who showed me how to make a platformer.