# Help with this plz

**URL:** <https://forum.kirupa.com/t/help-with-this-plz/65114>\
**Category:** Uncategorized\
**Created:** [September 23, 2004, 4:05am UTC](https://forum.kirupa.com/t/help-with-this-plz/65114 "2004-09-23T04:05:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![frozenRage](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@frozenRage](https://forum.kirupa.com/u/frozenRage)\
**Post date:** [September 23, 2004, 4:05am UTC](https://forum.kirupa.com/t/help-with-this-plz/65114/1 "2004-09-23T04:05:07Z")

</div>

```auto
 

setInterval(keyCheck, 1000);
function keyCheck() {
 if (Key.isDown(74) and Key.isDown(77) and Key.isDown(70)) {
  trace("test");
 }
}

 

```

can some1 plz tell if should work and if not how i can fix it with the desired effect (i would like to see if the J & M & F keys are being hit at the same time, and if so trace “test”, well actually i want to go to another frame but thats easy)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 23, 2004, 12:21pm UTC](https://forum.kirupa.com/t/help-with-this-plz/65114/2 "2004-09-23T12:21:31Z")

</div>

That’s because there is no logical AND operator that’s called ‘and’ in Flash !?  
AND is used as &&  
OR is used as ||  
NOT is used at !

So replace ‘and’ with ‘&&’ and see if it works 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 23, 2004, 5:32pm UTC](https://forum.kirupa.com/t/help-with-this-plz/65114/3 "2004-09-23T17:32:40Z")

</div>

actually, you can use the word ’ and ’ as well as the word ’ or '.

both work. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 23, 2004, 5:45pm UTC](https://forum.kirupa.com/t/help-with-this-plz/65114/4 "2004-09-23T17:45:14Z")

</div>

Wow, I guess I learned something new 🙂 Thanks for pointing that out!

Btw, I think the code needs a Listener to listen to which key is pressed…well, at least, I think 😉
