# Arrow key to control main timeline

**URL:** https://forum.kirupa.com/t/arrow-key-to-control-main-timeline/254974
**Category:** Uncategorized
**Created:** [March 17, 2008, 8:43pm UTC](https://forum.kirupa.com/t/arrow-key-to-control-main-timeline/254974 "2008-03-17T20:43:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![PippyLu](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@PippyLu](https://forum.kirupa.com/u/PippyLu)
#### Post date: [March 17, 2008, 8:43pm UTC](https://forum.kirupa.com/t/arrow-key-to-control-main-timeline/254974/1 "2008-03-17T20:43:09Z")

</div>

I want pressing the right arrow key on my keyboard to take my root timeline to frame 10 and stop. I get no error messages, but nothing happens when I press the arrow key. (cs3 on mac)

I have an empty mc on the main timeline with the following code:

> 

onClipEvent(keyDown)  
{  
if (Key.isDown(Key.RIGHT))  
\_root.gotoAndStop(10);  
}
