Rework input events dispatching

Mouse and keyboard basics work now.