4 actions to trigger an event

I would also go with an enumeration. Make an array with the correct sequence and add your actions to another array. every time an action is added loop through all the actions done so far and if they don’t match you can post which one didn’t match.

You can also do all the actions first and then compare if they are correct. Then just clear the actions done array and you are good to go for a retry.