support modifier keys in isPressed