# Onkeyup?

**URL:** <https://forum.kirupa.com/t/onkeyup/184981>\
**Category:** Uncategorized\
**Created:** [April 10, 2006, 12:20am UTC](https://forum.kirupa.com/t/onkeyup/184981 "2006-04-10T00:20:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lloyd](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@lloyd](https://forum.kirupa.com/u/lloyd)\
**Post date:** [April 10, 2006, 12:20am UTC](https://forum.kirupa.com/t/onkeyup/184981/1 "2006-04-10T00:20:05Z")

</div>

onkeyup

i want to make a button bashing game, i tryed using a button and with on press go to next frame but people can get around this people canjust press and hold down, so i looked into on release, but i dont know how to do this.

is there any button bashing tutorials out there?

---

<div class="post-metadata">

**Author:** ![Jimmy\_James](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@Jimmy\_James](https://forum.kirupa.com/u/Jimmy_James)\
**Post date:** [April 10, 2006, 1:43am UTC](https://forum.kirupa.com/t/onkeyup/184981/2 "2006-04-10T01:43:26Z")

</div>

Im not quiet sure wat u mean by this but i know there is a command if this helps at all ? :

on (keyPress “\<Up\>”) {  
}

---

<div class="post-metadata">

**Author:** ![lloyd](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@lloyd](https://forum.kirupa.com/u/lloyd)\
**Post date:** [April 10, 2006, 8:12am UTC](https://forum.kirupa.com/t/onkeyup/184981/3 "2006-04-10T08:12:59Z")

</div>

thanks but this finally got sorted by a friend.  
he used

onClipEvent(keyDown){  
e = Key.getAscii();  
trace(e);  
}

onClipEvent(keyUp){  
if (e == 32){  
\_root.nextFrame();  
} else {  
trace(“NOT SPACE!”);  
}  
}
