continuing work on input: Added mouse event supprt.