This moves all internal functions to a new file, and defines the old keybinds with register_key_input_callback().