Connect a LEGO WeDo 2.0 motor and distance sensor. Then, click the green flag. See what happens if you get closer to the distance sensor. Press the space bar to stop the motor.
Thanks to CAPTTUR for the idea. I added clouds, drew a new plane, and wrote new code.