# Simplest keyboard listening captures only some keys, not others

**URL:** https://forum.kirupa.com/t/simplest-keyboard-listening-captures-only-some-keys-not-others/271000
**Category:** flash
**Created:** [September 17, 2008, 9:00am UTC](https://forum.kirupa.com/t/simplest-keyboard-listening-captures-only-some-keys-not-others/271000 "2008-09-17T09:00:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![random0xff](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@random0xff](https://forum.kirupa.com/u/random0xff)
#### Post date: [September 17, 2008, 9:00am UTC](https://forum.kirupa.com/t/simplest-keyboard-listening-captures-only-some-keys-not-others/271000/1 "2008-09-17T09:00:17Z")

</div>

I have the simplest code and when I run it, there is no trace for most of the keys. It traces the W, and the U, but none ofthe other letter on that row. It traces all numbers, but not the - and =. It does trace shift- and shift=, the space bar, but not the enter or the escape. What could be the problem?

```auto
 	import flash.display.MovieClip; import flash.events.KeyboardEvent; import flash.ui.Keyboard; public class Application extends MovieClip { // Constructor public function Application() { stage.addEventListener(KeyboardEvent.KEY_DOWN, stage_keyDownHandler); } private function stage_keyDownHandler(e:KeyboardEvent):void { trace(e); } }  

```
