# Can't get Key.isDown to work

**URL:** https://forum.kirupa.com/t/cant-get-key-isdown-to-work/249649
**Category:** flash
**Created:** [January 21, 2008, 12:13pm UTC](https://forum.kirupa.com/t/cant-get-key-isdown-to-work/249649 "2008-01-21T12:13:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![spxy](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@spxy](https://forum.kirupa.com/u/spxy)
#### Post date: [January 21, 2008, 12:13pm UTC](https://forum.kirupa.com/t/cant-get-key-isdown-to-work/249649/1 "2008-01-21T12:13:58Z")

</div>

I’m using a movie clip as a button on the main time line and need the user to use the keyboard to control the movie.

I’m using

this.onEnterFrame = function(){

```
if (Key.isDown( 49 )){

```

\_root.gotoAndPlay(3);

}  
}

But thats not working, can anyone tell me where I’m going wrong.

I’m using AS2.0

cheers
