Vanilla Konami Code Factory Function

Basically the exact same thing as the jQuery plugin just minus the jQuery and the option to set your own code if you want.