You can customize your mouse and keyboard or controller input settings from the game's Settings menu, under the "Controls" tab.

To remap the buttons, simply open the game's menu ("Esc" on PC, "Options" on PS5, "+" on Nintendo Switch), select "Settings", and then "Controls". From this menu, scroll down until you reach the settings you are looking for, including mouse and keyboard, controller remapping, sensitivity, aim assist, and more.