Implemented key events
Fixed mouse events