first press the flag then use left and right key to control the paddle
for the ball i used if edge bounce and i used moving for the paddle i just used keys left and right.