# keyStroke function not working

**URL:** https://forum.kirupa.com/t/keystroke-function-not-working/122301
**Category:** Uncategorized
**Created:** [September 12, 2004, 4:11pm UTC](https://forum.kirupa.com/t/keystroke-function-not-working/122301 "2004-09-12T16:11:40Z")
**Posts on this page:** 1
**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/122301/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
