Implemented basic input for the mouse.