Handle modifiers keys on mouse input