Where do I find the input config file to remap the controllers. (sorry, I’m a noob here).

I’d like to map the L2 or R2 buttons of a gamepad to bring up the menu, but getting stuck on how to do that.

Currently, I have to unplug a controller and plug in a keyboard in order to accomplish this.