# If noKey.isDown?

**URL:** https://forum.kirupa.com/t/if-nokey-isdown/291760
**Category:** programming
**Created:** [July 4, 2009, 9:43pm UTC](https://forum.kirupa.com/t/if-nokey-isdown/291760 "2009-07-04T21:43:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Press\_Tilty](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Press\_Tilty](https://forum.kirupa.com/u/Press_Tilty)
#### Post date: [July 4, 2009, 9:43pm UTC](https://forum.kirupa.com/t/if-nokey-isdown/291760/1 "2009-07-04T21:43:34Z")

</div>

I have my hero, and hes got standing, moving, and jumping frames.  
When I do Key.RIGHT or Key.LEFT, it goes to moving, and Key.UP for jumping. How do I get it to return to standing if no key is pressed. (Or alternativley, have the frame only there while it is down). Thanks a lot!

Press\_Tilty
