First configure your usb gamepad with the usb gamepad wizard.
Goto Configuration, options, gamecontrols
Follow the steps described in the wizard.
In settings sometimes a keyboard is needed. Since Regamebox was originally made for Arcade Setup please use this keys.