Just click on the ball and stop when you want. The ball keeps moving, so you must be fast.
It is my first project. Credit to Scratch for giving me the tutorial, I guess.