# AS2 - some keypresses not being recognized in CS4

**URL:** <https://forum.kirupa.com/t/as2-some-keypresses-not-being-recognized-in-cs4/309783>\
**Category:** flash\
**Created:** [May 24, 2010, 10:56pm UTC](https://forum.kirupa.com/t/as2-some-keypresses-not-being-recognized-in-cs4/309783 "2010-05-24T22:56:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ph03nix](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@Ph03nix](https://forum.kirupa.com/u/Ph03nix)\
**Post date:** [May 24, 2010, 10:56pm UTC](https://forum.kirupa.com/t/as2-some-keypresses-not-being-recognized-in-cs4/309783/1 "2010-05-24T22:56:10Z")

</div>

I’m using Flash CS4, and using ANY method for capturing keypresses, only some keypresses are recognized. Backspace, Enter, and all of the letters on the keyboard do not trigger anything for me. Even using code as simple as…

on(keyPress “\<Enter\>”){  
trace(“pressed enter”);  
}

…doesn’t work at all, while code like…

on(keyPress “\<Space\>”){  
trace(“pressed space”);  
}

…works perfectly. And no, caps lock isn’t on.
