Quoted By:
that is extremely specific to the implementation, you have to come up with your own use case, but having a ring buffer (or stack) of last input events as big as the konami code sequence would be a good starting point (checking if the buffer is filled with the right sequence after each new input event is stored in it)
gl