Optimizes and refactors Konami Code matching logic

Only store the last ten keystrokes, since the code is ten keystrokes
long.

Fixes #2.
Merge pull request #3 from benizi/fix/memory-optimization-for-konami

Optimizes and refactors Konami Code matching logic