small change to mirror press_keys implementation