Use the arrow keys to move the black circle. Use space to put the ball in the middle of the stage. If it turns out that you hit the edge, you will be prevented from going further.
Drawing added