input: added input mediator for ordering of input events