Starting and breaking a loop with a joystick movement

How can I start and break a loop with a joystick movement?

Read the forum guidelines to see how to get the most from this forum.

Is the correct answer "with the break keyword"?