Use the PRL_KEY abstraction instead of scan codes.

Note that vm_io.send_key_pressed_and_released doesn't seem reliable.