modified ps2_get_keys