Initialise the input system, which keeps a list of input event to
action bindings and executes the the proper actions automatically.
Returns a function for adding bindings, and another which should be
called periodically (eg from refresh) to trigger still-down actions.