# Action problem

**URL:** https://forum.kirupa.com/t/action-problem/274361
**Category:** Uncategorized
**Created:** [October 28, 2008, 11:29pm UTC](https://forum.kirupa.com/t/action-problem/274361 "2008-10-28T23:29:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lannoo](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lannoo](https://forum.kirupa.com/u/lannoo)
#### Post date: [October 28, 2008, 11:29pm UTC](https://forum.kirupa.com/t/action-problem/274361/1 "2008-10-28T23:29:42Z")

</div>

i have made this code:

```auto

onClipEvent(enterFrame){
var attack = 90;  
if(Key.isDown(attack)){
this.gotoAndPlay("attack");
}

```

so if i press the z-key it does the attack move, but if i press it again it does nothing. If i move and then pres the z-key it works again. Why do i need to move before i can do it again and how can i fix it?

tx, Niels
