# On Any key press

**URL:** https://forum.kirupa.com/t/on-any-key-press/36044
**Category:** Uncategorized
**Created:** [November 21, 2003, 4:36am UTC](https://forum.kirupa.com/t/on-any-key-press/36044 "2003-11-21T04:36:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Digigamer](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digigamer/32/276_2.png) [@Digigamer](https://forum.kirupa.com/u/Digigamer)
#### Post date: [November 21, 2003, 4:36am UTC](https://forum.kirupa.com/t/on-any-key-press/36044/1 "2003-11-21T04:36:21Z")

</div>

hey does anybody have the actionscript for any keypress? I have something I want to happen when any key is pressed but I’m not sure how to do that.

So I want it to be something like  
[AS]  
on (keyPress “all keys”)  
{  
statement;  
}[/AS]

thanks 🙂
