All you need to do is block the ball with your paddle which you do by moving the mouse around. If the ball gets stuck, just press the flag again.
P.S., I'll try to stay updated with the comments, but no promises.