Press space to go up while not getting stuck on the ground or in the pipes.
I got the idea for this project from a mobile game called Flappy Bird.