change mouse input detection