# Please, help me, really easy question

**URL:** <https://discourse.processing.org/t/please-help-me-really-easy-question/37433>\
**Category:** Beginners\
**Created:** [June 9, 2022, 8:39pm UTC](https://discourse.processing.org/t/please-help-me-really-easy-question/37433 "2022-06-09T20:39:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos138](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@Carlos138](https://discourse.processing.org/u/Carlos138)\
**Post date:** [June 9, 2022, 8:39pm UTC](https://discourse.processing.org/t/please-help-me-really-easy-question/37433/1 "2022-06-09T20:39:01Z")

</div>

With this easy code:

```auto
void setup () {
  size(500, 500);
  background(255, 255, 255);
}

void draw() {
	if(keyPressed){
		if(key=='a'){
    rect(20, 20, 50, 50);
		}
  }
}

```

Why the square didn’t disappear when I stop clicking “a”???  
If you can send me how to do it I will preciate.

---

<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:** [June 9, 2022, 8:48pm UTC](https://discourse.processing.org/t/please-help-me-really-easy-question/37433/2 "2022-06-09T20:48:23Z")

</div>

Hello,

Look at the reference for _setup()_, _draw()_ and _background()_.

Reference:  
[https://processing.org/reference/setup\_.html](https://processing.org/reference/setup_.html)  
[https://processing.org/reference/draw\_.html](https://processing.org/reference/draw_.html)  
[https://processing.org/reference/background\_.html](https://processing.org/reference/background_.html)

`:)`

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [June 9, 2022, 8:49pm UTC](https://discourse.processing.org/t/please-help-me-really-easy-question/37433/3 "2022-06-09T20:49:19Z")

</div>

Hi @Carlos138

Try this … 🙂

```auto
void setup () {
  size(500, 500);
}

void draw() {
   background(255, 255, 255);
   if(keyPressed) {
       if(key=='a') {
             rect(20, 20, 50, 50);
        }
    }
}

```

Cheers  
—mnse
