# Key.getCode not working too well

**URL:** https://forum.kirupa.com/t/key-getcode-not-working-too-well/198584
**Category:** Uncategorized
**Created:** [August 26, 2006, 12:18pm UTC](https://forum.kirupa.com/t/key-getcode-not-working-too-well/198584 "2006-08-26T12:18:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Cobra\_Banshee](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@Cobra\_Banshee](https://forum.kirupa.com/u/Cobra_Banshee)
#### Post date: [August 26, 2006, 12:18pm UTC](https://forum.kirupa.com/t/key-getcode-not-working-too-well/198584/1 "2006-08-26T12:18:07Z")

</div>

```auto
    if (Key.isDown(Key.getCode("S")) && paddle1_mc._y<360) {
        paddle1_mc._y += 8;
    }
    if (Key.isDown(Key.getCode("W")) && paddle1_mc._y>40) {
        paddle1_mc._y -= 8;
    }

```

Why isn’t that working? If I remove one of them, then it will work, but with both, nothing happens! Why’s this?
