Fix mouse input event