Added messages for mouse and keyboard events