# Simple arrow question

**URL:** https://forum.kirupa.com/t/simple-arrow-question/85607
**Category:** flash
**Created:** [April 6, 2005, 1:18am UTC](https://forum.kirupa.com/t/simple-arrow-question/85607 "2005-04-06T01:18:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ar1](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@ar1](https://forum.kirupa.com/u/ar1)
#### Post date: [April 6, 2005, 1:18am UTC](https://forum.kirupa.com/t/simple-arrow-question/85607/1 "2005-04-06T01:18:33Z")

</div>

I have this code on a movie clip:

```auto

onClipEvent (enterFrame) {
	
	this.gotoAndStop ()
	
	if (Key.isDown(Key.DOWN)) {
		this.gotoAndPlay ()
	}
}

```

But the problem is, when I let go of the arrow key, the movie keeps on playing. How could I make this work, so that the movie clip would go to the first frame when you let go of the arrow key?

Because this code didn’t work:

```auto

onClipEvent (enterFrame) {
	
	this.gotoAndStop ()
	
	if (Key.isDown(Key.DOWN)) {
		this.gotoAndPlay ()
	} else {
		this.gotoAndStop (1)
	}
}

```

I just don’t know how to set the true and false statements. Could someone help me?

Thanks in advance[color=DeepSkyBlue]

!GB! - PEACE -  
[/color]
