Added a class to support code sequences (i.e. Konami code).