Arrow key to control main timeline

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);
}