Added mouse support

added mouse events to the input class