Press space when he reaches the ball and press up arrow to put the basketball back.
I was bored so I made it for fun ( credits to @Gugmug for helping me on how to move stuff )