Okey dokey, I got something here. It's pretty basic, but you can change it up to fit your needs. But first, let me clarify. I don't use the cool little code function that often
First make a variable called Input, and make sure it's set to 0. What the Key Input function does is assign all pressable buttons a number between 1-24. When you press a key, the variable immediately switches to the value of the button you pressed (for example, pressing the right key will make your variable equal to 1, pressing up will make it equal to 4, etc.). That's why the code says "(Whatever button you want it to be)," just set it to the number of the button you want pressed. Hopefully that made sense.
<>Message: Insert the first button.
<>Key Input Proc [xxxx:Input]
<>Branch if Var [xxxx:Input] is (whatever button you want it to be)
<>Message: Correct. Now input the second button.
<>Key Input Proc [xxxx:Input]
<>Branch if Var [xxxx:Input] is (whatever button you want it to be)
<>Message: Splendid. Now input another one.
<>Key Input Proc [xxxx:Input]
<>Branch if Var [xxxx:Input] is (whatever button you want it to be)
Etc...
: Else Handler
<>Message: You lose!
<>Variable Oper [xxxx:Input] Set, 0
End
<>
Else Handler
<>Message: You lose!
<>Variable Oper [xxxx:Input] Set, 0
End
You can fluff it out to make it awesome, too, that up there is just the absolute bare minimum of its power. If you add pictures, battle animations, and sound effects, it's a really cool feature (Resident Evil 5, anyone?)