changes for mouse/keyboard events