# F8: keyboard keys

**URL:** <https://forum.kirupa.com/t/f8-keyboard-keys/213288>\
**Category:** flash\
**Created:** [January 18, 2007, 12:25pm UTC](https://forum.kirupa.com/t/f8-keyboard-keys/213288 "2007-01-18T12:25:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Newbie123](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@Newbie123](https://forum.kirupa.com/u/Newbie123)\
**Post date:** [January 18, 2007, 12:25pm UTC](https://forum.kirupa.com/t/f8-keyboard-keys/213288/1 "2007-01-18T12:25:01Z")

</div>

Basically i just want a key to be pressed on the keyboard, and movieclip1 is played. But for some bizarre reason, it only works if insert, up, down, right, left arrow keys are pressed For example, if I assigned ‘DELETE’ key, the movieclip doesnt play. I want ‘HOME’ or ‘END’ key to work too!

code is something like this:

```auto
 
var KEY_listener:Object = new Object();
KEY_listener.onKeyDown = function() { 
 switch(Key.getCode() ) {
  
  case Key.LEFT :
  movieclip1.gotoAndPlay ("start")
  
  
  
  }
 
}
Key.addListener(KEY_listener);
 

```
