How to implement jutsu (from naruto)

Create Input:

250638-binding.png

Create a Map:

250639-map.png

Here’s the script reacting to a key sequence:

It reads pressed keys and accumulates their values in a string. It then looks for a matching string in the Map. If found, it executes; if the search exceeds 4 keys, it resets the whole thing and waits for 1s before it can be used again. Seems to work well.