# Cannot Detect All Key pressed onKeyDown

**URL:** <https://forum.kirupa.com/t/cannot-detect-all-key-pressed-onkeydown/294348>\
**Category:** flash\
**Created:** [August 12, 2009, 8:51pm UTC](https://forum.kirupa.com/t/cannot-detect-all-key-pressed-onkeydown/294348 "2009-08-12T20:51:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladc77](https://avatars.discourse-cdn.com/v4/letter/v/5e9695/32.png) [@vladc77](https://forum.kirupa.com/u/vladc77)\
**Post date:** [August 12, 2009, 8:51pm UTC](https://forum.kirupa.com/t/cannot-detect-all-key-pressed-onkeydown/294348/1 "2009-08-12T20:51:01Z")

</div>

Here is the code I used:

```auto
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
    trace("DOWN -> Code: " + Key.getCode() + "	ACSII: " + Key.getAscii() + "	Key: " + chr(Key.getAscii()));
 if (Key.getCode() == 65) {
        trace ("Virtual key code: "+Key.getCode()+" 65");
    } 
};
Key.addListener(keyListener);

```

It is an usual code to listen the key presed on the keyboard. For some reason, I cannot detect any letter-key exept letters “w”, “x”, “d” and “J”. I tested it on a different computer and results are the same. It is driving me crazy. I am not sure what is the problem. Is anybody experienced the same? Is any work around it? Thank you!
