Keystroke listener not working in .exe

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.


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?