# Keystroke listener not working in .exe

**URL:** <https://forum.kirupa.com/t/keystroke-listener-not-working-in-exe/224626>\
**Category:** flash\
**Created:** [May 3, 2007, 9:03pm UTC](https://forum.kirupa.com/t/keystroke-listener-not-working-in-exe/224626 "2007-05-03T21:03:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpr](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mpr](https://forum.kirupa.com/u/mpr)\
**Post date:** [May 3, 2007, 9:03pm UTC](https://forum.kirupa.com/t/keystroke-listener-not-working-in-exe/224626/1 "2007-05-03T21:03:30Z")

</div>

_This is for AS 2.0, not 3. (wrong forum)_

I have a movie that I want to control with a keystroke; it will jump to the next frame as I hit the enter key.

```auto

this.on(keyPress "<Enter>");{
    this.nextFrame();
}

```

This won’t work when I publish it into a Windows projector (.exe).

Does anyone know if it’s my code or the way it’s published?
