Add input event DAG

This PR adds code for hotkey recognition and event emission.
Still WIP, but you can review the code that is present now.
Targets #321.
Plus it does the `ws_object_init()` call for you. Would shorten the ~10 lines above.