Hotkeys for movieclips

Basically I wanna detect when someone presses “space” or “enter” etc, and then execute a function when you press “space” etc…

Now…

I dont want to use onClipEvents…

How can I do this?

I’ve tried

if(Key.isDown(Key.SPACE))
{
    trace("run");
}

but nothing happens…

Any idea’s?