This is a API to detect any sequential key combination. Try typing the Konami Code: (its up arrow-up arrow-down arrow-down arrow-left arrow-right arrow-left arrow-right arrow-b-a) To write a combination, write the key combination with each key separated by a dash (-) Use the names of keys in the Sensing key detection block. The combinations can be of any length Note that this works as a "wait until" the code is fully inputted. If you do it wrong it restarts the combination.
Feel free to use it in your projects but please give me credit Thanks to @mariogeek for finding a bug in the program and providing a fix. Unfortunately it has to be two blocks or it crashes flash.