# A key that when clicked will increase the speed of the square

**URL:** https://discourse.processing.org/t/a-key-that-when-clicked-will-increase-the-speed-of-the-square/16939
**Category:** Coding Questions
**Created:** [January 7, 2020, 6:12pm UTC](https://discourse.processing.org/t/a-key-that-when-clicked-will-increase-the-speed-of-the-square/16939 "2020-01-07T18:12:16Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [January 8, 2020, 1:30am UTC](https://discourse.processing.org/t/a-key-that-when-clicked-will-increase-the-speed-of-the-square/16939/2 "2020-01-08T01:30:53Z")

</div>

please format your code posting by pasting it into the

```auto
</> code button

```

of the editor header menu ( context name: Preformatted text )  
it looks like  
```  
type or paste code here  
```

also can use the ``` manually above and below your code.

thank you.

* * *

that is very difficult to read, but could be that your  
IF ELSE {{{{}}}}} structure  
put the key [p] inside the

```auto
if ( key == CODED ) {

```

so it can never be detected???

---

_[View the full topic](https://discourse.processing.org/t/a-key-that-when-clicked-will-increase-the-speed-of-the-square/16939)._
