# KeyPress Question

**URL:** <https://forum.kirupa.com/t/keypress-question/218151>\
**Category:** flash\
**Created:** [March 5, 2007, 3:22pm UTC](https://forum.kirupa.com/t/keypress-question/218151 "2007-03-05T15:22:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VaLL](https://avatars.discourse-cdn.com/v4/letter/v/4491bb/32.png) [@VaLL](https://forum.kirupa.com/u/VaLL)\
**Post date:** [March 5, 2007, 3:22pm UTC](https://forum.kirupa.com/t/keypress-question/218151/1 "2007-03-05T15:22:11Z")

</div>

I’m making a little game in flash, and:

on (keyPress “\<Right\>”) {  
\<animation\>  
}

After you’ve let go of the button I want it to animate back to its original position, but I can’t work out how to ‘on release’ a keyPress so when its not held down it animates back, any help would be appreciated
