Keyboard timeline control

Hi people. I’m trying something like this:

on (keyPress “<Left>”) {
bottom_mc.gotoAndStop(2);
}

But when I put this on the timeline I am told that this action is only permitted but buttons. Can anyone help?

A.