# Flash CS5.5 AS2 Key question

**URL:** https://forum.kirupa.com/t/flash-cs5-5-as2-key-question/332140
**Category:** flash
**Created:** [February 13, 2014, 3:10am UTC](https://forum.kirupa.com/t/flash-cs5-5-as2-key-question/332140 "2014-02-13T03:10:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![keiwoo1](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@keiwoo1](https://forum.kirupa.com/u/keiwoo1)
#### Post date: [February 13, 2014, 3:10am UTC](https://forum.kirupa.com/t/flash-cs5-5-as2-key-question/332140/1 "2014-02-13T03:10:25Z")

</div>

onClipEvent (enterFrame) {  
if (Key.isDown(65)) {  
this.gotoAndStop(“attack1”);

The problem is, when i press letter “a” (key.isDown(65)"" it will animate “attack1” but it will not finish the animation unless i hold the button… i wanted it to just one push and it will automatically finish the frames without holding button “a”,

this is just for now
