Press q to throw the ball and press space to try hit the ball. If your score is more than 0 then press a to get the ball back.
This took me 5 minutes.