See instructions in-game Q allows you to stop the game without pressing the stop button.
Made in Scratch 1.4 on a Raspberry Pi