# Key press events

**URL:** https://forum.kirupa.com/t/key-press-events/40166
**Category:** Uncategorized
**Created:** [January 15, 2004, 10:18am UTC](https://forum.kirupa.com/t/key-press-events/40166 "2004-01-15T10:18:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![scotty\_boy](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@scotty\_boy](https://forum.kirupa.com/u/scotty_boy)
#### Post date: [January 15, 2004, 10:18am UTC](https://forum.kirupa.com/t/key-press-events/40166/1 "2004-01-15T10:18:12Z")

</div>

Has the key press actionscript changed for mx2004, i can’t seem to make a simple script as below work

on (keyPress “\<ENTER\>”) {  
submit();  
}

This is placed on an instance of a button that is off the stage and should simply trigger my function submit. The function works as it is also triggered by clicking another button.
