WASD or arrow keys for movement. Press R to restart a level if you get stuck in the floor. Click the flag again if the play button doesn't work. Red causes you to restart, and the sprite scales based on its x position.
Made this for my AP Computer Science class.