Change input axis values from code

I have a bool in my settings menu that is called inverted controls. This is because the arrow keys and WASD are both used for different things and some people might want to swap their functions in the game.

How can I change an input axis buttons from code and if that’s not possible what is another way I could do it?

here is a simplified version of the code:

I want this to be (left arrow) and (right arrow) if the inverted controls bool is true

if (Input.getaxis("Horizontal")) 
{
    //move the player
}

I want this to be (a) if the inverted controls bool is true

if (Input.GetKey(KeyCode.LeftArrow))
{
    //move the camera left
}

I want this to be (d) if the inverted controls bool is true

if (Input.GetKey(KeyCode.RightArrow))
{
    //move the camera right
}

I’m a little confused by this; the “simplified” version makes this significantly easier:

float invertMultiplier = invertControls ? -1.0f : 1.0f;
float playerInputH = Input.GetAxis("Horizontal") * invertMultiplier;

I’m really stupid and I’m not quite sure how to add that in or what it would do.
But basically, I’m trying to change the horizontal axis negative button from a to left arrow and the positive button from d to right arrow and two if statements checking for a press of the left or right arrow to a press of a or d.

Maybe there is a way to use alt buttons (alt negative button and alt positive button) to do this?