Hi,
What you want to build is a sequencer.
Using ArrayMaker, you can define the sequence ( say the konami code). use an arrayList, and store strings like "Left","left","up","up", etc.
then when you start a sequence, keep track of the index in an fsm variable, and until the use hasn't produce the current step, you don't increment your index, so at index 0, you watch for the swipe left, as soon as you have a swipe left, you move to the next step by incrementing the index and getting the string at the index, so again left, etc etc.
Does that make sense?
bye,
Jean