How do you enable gamepad mode

I have a picade hat and a picade pcb. Retropie sees both as the keyboard. How do I make the pcb come up as a game pad?

See: New 2.x Configurable Keyboard/Gamepad Firmware