# keyStroke function not working

**URL:** <https://forum.kirupa.com/t/keystroke-function-not-working/64021>\
**Category:** flash\
**Created:** [September 12, 2004, 4:11pm UTC](https://forum.kirupa.com/t/keystroke-function-not-working/64021 "2004-09-12T16:11:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![planetSim](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@planetSim](https://forum.kirupa.com/u/planetSim)\
**Post date:** [September 12, 2004, 4:11pm UTC](https://forum.kirupa.com/t/keystroke-function-not-working/64021/1 "2004-09-12T16:11:40Z")

</div>

Okay, this _seemed_ simple enough… but somehow I seem to have screwed it up. I have this code attached to a button. next to the button is an input text box, if that matters in any way. Now, if I click on the button, sure enough, I jump to the next scene. but I can hit the enter key a thousand times(trust me on this one) and it just refuses to go. what am I missing?

on (release, keyPress “\<Enter\>”) {  
nextScene();  
}

Thanks in advance  
Sim

---

<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:** [September 12, 2004, 4:35pm UTC](https://forum.kirupa.com/t/keystroke-function-not-working/64021/2 "2004-09-12T16:35:53Z")

</div>

Your AS is valid. Have you clicked somewhere on the .swf before you hit enter?

---

<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:** [September 12, 2004, 4:54pm UTC](https://forum.kirupa.com/t/keystroke-function-not-working/64021/3 "2004-09-12T16:54:10Z")

</div>

Yeah, i tried that also, before I posted, I’ve tried clicking in and out of the text box, I even pushed the button, then pushed the button in the second scene that takes me back to the first scene where i login from. Is there anyway that the stop command on a keyframe in the animation could stop it? In about 5 seconds I’m even going to try restarting my computer and trying it again. The only other possible thing I could think of is maybe I have a case problem in my string, as I’ve found before fmx2004 is kind of fickle on that.

Still doesnt work after program restart ☹
