Using a USB Keyboard without the use of a PC

Hi, can I follow-up on this problem. I can only use the USB keyboard once, the Arduino has to be turned off or reset (does not always works). Most likely, there is an error: "OSC did not start. arduino". Does anyone has a solution in restarting the usb host for the USB keyboard?