Make InputEvent a base class for mouse and touch