Use the space bar to move without banging into a pole.
Full credit to the original Flappy Bird; I just made another version.