# Flash KeyboardEvent

**URL:** <https://forum.kirupa.com/t/flash-keyboardevent/259531>\
**Category:** flash\
**Created:** [May 6, 2008, 1:49pm UTC](https://forum.kirupa.com/t/flash-keyboardevent/259531 "2008-05-06T13:49:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirmani](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@kirmani](https://forum.kirupa.com/u/kirmani)\
**Post date:** [May 6, 2008, 1:49pm UTC](https://forum.kirupa.com/t/flash-keyboardevent/259531/1 "2008-05-06T13:49:38Z")

</div>

Hi all. I am facing a problem with KeyboardEvent, I have written the following code

stage.addEventListener(KeyboardEvent.KEY\_DOWN,on\_keyDown);  
private function on\_keyDown(e:KeyboardEvent):void{  
trace(“key down”);  
}

It is working for some keys, but not for all, such as, it do nothing when I press delete key, ‘a’,‘s’ and many other keys.
