# \[FMX\] go to frame on pressing a key sequence

**URL:** https://forum.kirupa.com/t/fmx-go-to-frame-on-pressing-a-key-sequence/65092
**Category:** flash
**Created:** [September 22, 2004, 11:46pm UTC](https://forum.kirupa.com/t/fmx-go-to-frame-on-pressing-a-key-sequence/65092 "2004-09-22T23:46:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![frozenRage](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@frozenRage](https://forum.kirupa.com/u/frozenRage)
#### Post date: [September 22, 2004, 11:46pm UTC](https://forum.kirupa.com/t/fmx-go-to-frame-on-pressing-a-key-sequence/65092/1 "2004-09-22T23:46:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 23, 2004, 4:28am UTC](https://forum.kirupa.com/t/fmx-go-to-frame-on-pressing-a-key-sequence/65092/2 "2004-09-23T04:28:20Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 27, 2004, 11:35pm UTC](https://forum.kirupa.com/t/fmx-go-to-frame-on-pressing-a-key-sequence/65092/3 "2004-09-27T23:35:02Z")

</div>

Thanx a lot, that really helps
