Depends how the Game read from the keyboard, does it takes only the final characters or in raw mode how long the key is/was pressed ?
Just a single character:
usb_keyboard_press(KEY_A, 0);
Beginn:
keyboard_keys[0] = KEY_LEFT; usb_keyboard_send();
End:
keyboard_keys[0] = 0;
usb_keyboard_send();
I had this issue with a Flight Simulator, steering right/left was unusable but navigating through Menus worked well. (Also in a Texteditor, but not in the Sim)