Add input system to emit input events from SDL

This works really well!