Added basic support for mouse-events

Added basic support for mouse-events the same way the keyboard events are implemented.