[FMX] go to frame on pressing a key sequence

can anyone tell me how you would press say three keys at once and be taken to a specific frame?

thats the best i can do and it doesn’t quite work, one in ten trys it works so im utterly confused

onClipEvent (enterFrame) {
if (Key.isDown(74)) {
if (Key.isDown(77)) {
if (Key.isDown(70)) {
trace(“test”);
}
}
}
}

anyway, thanx to anyone who can help

maintain a string !!!

_root.sKeysPressed = “”;

myListener = new Object();
myListener.onKeyUp = function () {
if ((Key.isDown(74) ||(Key.isDown(77) || (Key.isDown(70)) {
_root.sKeysPressed = _root.sKeysPressed + “,” + Key.getCode();
}
else {
_root.sKeysPressed = “”;
}
if(_root.sKeysPressed == “,74,77,70”) {
_root.gotoAndPlay(4);
}
Key.addListener(myListener);

Thanx a lot, that really helps