# Handler only recieving some Key Down Events

**URL:** <https://forum.kirupa.com/t/handler-only-recieving-some-key-down-events/314776>\
**Category:** flash\
**Created:** [October 8, 2010, 9:56am UTC](https://forum.kirupa.com/t/handler-only-recieving-some-key-down-events/314776 "2010-10-08T09:56:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alpha\_eX](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Alpha\_eX](https://forum.kirupa.com/u/Alpha_eX)\
**Post date:** [October 8, 2010, 9:56am UTC](https://forum.kirupa.com/t/handler-only-recieving-some-key-down-events/314776/1 "2010-10-08T09:56:33Z")

</div>

I’ve added an event listener to my stage like this:

```php
//key event listeners
            stage.addEventListener(KeyboardEvent.KEY_DOWN, engine.keyDown, false,0,true);
            stage.addEventListener(KeyboardEvent.KEY_UP, engine.keyUp, false,0,true);

```

and i’m tracing it out like this:

```php
public function keyDown(e:KeyboardEvent):void
        {
            var keycode:int = e.keyCode;
            trace("Engine.keyDown " + keycode);
        }

```

The problem is, some keys don’t trigger the event. So if I type “ASDFG” I only get a response for “F” and “G”, here’s the trace:

```php
Engine.keyDown 68
Engine.keyDown 71

```

My structure is like this.

Main class is Game.  
Game creates an Engine and adds the engine to the display with addChild()

Any idea what’s causing this?

EDIT: It seems it’s because the keyboard events are being taken over by Flash CS3 and using them to select Tools and not letting them go to the SWF, very very annoying. - Can I turn this off?
