# Only appear on key down

**URL:** https://forum.kirupa.com/t/only-appear-on-key-down/152659
**Category:** flash
**Created:** [June 26, 2005, 3:30pm UTC](https://forum.kirupa.com/t/only-appear-on-key-down/152659 "2005-06-26T15:30:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gaming\_monkey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gaming_monkey/32/772_2.png) [@gaming\_monkey](https://forum.kirupa.com/u/gaming_monkey)
#### Post date: [June 26, 2005, 3:30pm UTC](https://forum.kirupa.com/t/only-appear-on-key-down/152659/1 "2005-06-26T15:30:08Z")

</div>

I have a movieclip with two frames. I want it so that if spacebar is being held down go to frame 2, but if isnt pressed then stay on frame 1.

I can’t find a way to detect if key is up. Basically what I want to achieve is something similar to the laser in this game: [http://www12.plala.or.jp/nextframe/flash/fire2.html](http://www12.plala.or.jp/nextframe/flash/fire2.html)

I’m having trouble with the laser appearing when the key is being held down but then I also need it to disappear when the key is not being pressed.

I hope I explained well enough, thanks for any help. 🙂
