All you need to do is to press the right and left arrow keys to move left and right to avoid the obstacles.