modify ispressedanykey->isdownanykey