# Keypress help please

**URL:** <https://forum.kirupa.com/t/keypress-help-please/57311>\
**Category:** flash\
**Created:** [July 12, 2004, 8:59am UTC](https://forum.kirupa.com/t/keypress-help-please/57311 "2004-07-12T08:59:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LOUIS](https://avatars.discourse-cdn.com/v4/letter/l/ecb155/32.png) [@LOUIS](https://forum.kirupa.com/u/LOUIS)\
**Post date:** [July 12, 2004, 8:59am UTC](https://forum.kirupa.com/t/keypress-help-please/57311/1 "2004-07-12T08:59:56Z")

</div>

hi i have mx 2004 and would like to know how to make a keypress sctipt for example when key a is down trace (“whatever”)  
please help thanks  
louis.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 4:17pm UTC](https://forum.kirupa.com/t/keypress-help-please/57311/2 "2004-07-12T16:17:15Z")

</div>

if you place these actions in an empty document and press the enter key, it will trace “Enter key is pressed”.

```auto
createEmptyMovieClip("myClip", 0);
myClip.onEnterFrame = function () {
  if (Key.isDown(Key.ENTER)) {
    trace("Enter key is pressed");
  }
};

```
