Renamed input_instance to input_event
Refactored input_event definition.

Instead of having separate data structures for gamepad and keyboard, use the same structures and assume that both gamepad keys and keyboard keys will fit into a `long`.

Key sequences are loaded from JSON now(but not handled).