Execute a callback when the Konami Code is entered
Install with component(1):
$ component install stephenmathieson/konamicode
konamicode([element], fn)
Bind a keydown listener to element and invoke fn when the Konami Code is entered.
var konami = require('konami-code');
// bind to the window
konami(function () {
alert('hooray')
});
// bind to #foo
konami(document.getElementById('foo'), function () {
alert('hooray');
});MIT