How can I create a custom key map for my joystick/controller buttons?

On the BATTLE, click on SETTINGS; then click on Key Mapping.

If there are preset buttons assigned that you wish to change, first you must click on that field to clear it; then click on the button on your joystick you wish to assign to that function.