# I need a shortcut for stopping sketch in Processing

**URL:** <https://discourse.processing.org/t/i-need-a-shortcut-for-stopping-sketch-in-processing/39642>\
**Category:** Beginners\
**Created:** [November 9, 2022, 11:59am UTC](https://discourse.processing.org/t/i-need-a-shortcut-for-stopping-sketch-in-processing/39642 "2022-11-09T11:59:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![debxyz](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@debxyz](https://discourse.processing.org/u/debxyz)\
**Post date:** [November 9, 2022, 12:54pm UTC](https://discourse.processing.org/t/i-need-a-shortcut-for-stopping-sketch-in-processing/39642/3 "2022-11-09T12:54:19Z")

</div>

Hello @abdu

There are a few nice suggestions in this thread:

> [@How to freeze a draw loop?](https://discourse.processing.org/t/how-to-freeze-a-draw-loop/2741):
>
> I have a draw loop that makes a new graphic each time. I want to be able to pause the loop by clicking the mouse when I see a graphic that I like. But everything I’ve tried fails to stop on the current frame. It’s always the next frame, or a later one, no matter how slow the frame rate. For example, if (mousePressed == true) { delay(20000); } pauses things for 20 seconds, but it seems to take a frame or two until things stop. I haven’t found any info that addresses this sort of thing…I’m doin…

🤓

---

_[View the full topic](https://discourse.processing.org/t/i-need-a-shortcut-for-stopping-sketch-in-processing/39642)._
