Hold the spacebar to go up. Release to go down. Avoid the red oval and the edge.
The game was made in 2 minutes. It also sucks I guess.