# On keypress question

**URL:** <https://forum.kirupa.com/t/on-keypress-question/158008>\
**Category:** flash\
**Created:** [August 5, 2005, 7:52pm UTC](https://forum.kirupa.com/t/on-keypress-question/158008 "2005-08-05T19:52:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bottleknife](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@bottleknife](https://forum.kirupa.com/u/bottleknife)\
**Post date:** [August 5, 2005, 7:52pm UTC](https://forum.kirupa.com/t/on-keypress-question/158008/1 "2005-08-05T19:52:11Z")

</div>

I’m trying to get a - [COLOR=Blue]on (keyPress “\<enter\>”)[/COLOR] - to work for the numbers 1,2,3 , etc.

I’ve looked up the ASCII key code values, but it doesn’t seem to work. Is there a certain way that you have to put the ASCII value between the [COLOR=Blue]\<\>[/COLOR]?
