convert on_keydown to pressed