Wrapped Keycode in a requirejs define. Reformatted indentation as well.
translate_event must be passed an event now.
Added .editorconfig.