Use your right and left arrow key's to move the paddle and stop the ball from hitting the red line.
I got my idea from a tutorial.