# Problem with Keys

**URL:** <https://forum.kirupa.com/t/problem-with-keys/241072>\
**Category:** Uncategorized\
**Created:** [October 9, 2007, 8:32pm UTC](https://forum.kirupa.com/t/problem-with-keys/241072 "2007-10-09T20:32:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aquilonian](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Aquilonian](https://forum.kirupa.com/u/Aquilonian)\
**Post date:** [October 9, 2007, 8:32pm UTC](https://forum.kirupa.com/t/problem-with-keys/241072/1 "2007-10-09T20:32:39Z")

</div>

I was trying to move my ship based on WASD and find out that A and S were not working, them i get this code from the flash help itself:

```auto

function reportKeyDown(event:KeyboardEvent):void
{
    trace("Key Pressed: " + String.fromCharCode(event.charCode) + " (character code: " + event.charCode + ")");
}
stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);

```

And notice that it traces nothing when i press a or s, only when i press wd  
This happens with some other Keys too  
So, how can i solve that?It was working in f9 alpha…Ⓜ
