# Keypressed Function Stuck On

**URL:** <https://discourse.processing.org/t/keypressed-function-stuck-on/47341>\
**Category:** Coding Questions\
**Created:** [October 13, 2025, 4:12pm UTC](https://discourse.processing.org/t/keypressed-function-stuck-on/47341 "2025-10-13T16:12:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 13, 2025, 4:33pm UTC](https://discourse.processing.org/t/keypressed-function-stuck-on/47341/2 "2025-10-13T16:33:58Z")

</div>

Hello @WillyGrz,

Please read:

- _[Welcome to the Processing Foundation Discourse](https://discourse.processing.org/t/welcome-to-the-processing-foundation-discourse/8)_

- _[Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-asking-questions/2147)_

Your code is not formatted correctly.

This is certainly not correct and there are other instances of this:

> [@WillyGrz](#):
>
> if (keyDwn[2] = true) {

Reference:

> **[== (equality) / Reference](https://processing.org/reference/equality.html)**
>
> Determines if two values are equivalent. Please note the equality operator (==) is different from the assignment operator (=) and although they look similar, they have a different use. If you're compa…

`:)`

---

_[View the full topic](https://discourse.processing.org/t/keypressed-function-stuck-on/47341)._
