Input button 'Run' is not being recognized

Hello, I’ve created a custom button on the Input Manager called ‘Run’ and dedicated ‘left shift’ for it. 206189-screen-shot-2023-04-05-at-015605.png

However, my script does not recognize that it’s been pressed. The ‘isWalking’ bool works fine but the script does not go into the second if statement and does not turn ‘isRunning’ to true when ‘Run’ button aka left shift is pressed.

 if (direction.magnitude != 0)
        {
            if (Input.GetButton("Run"))
            {
                isRunning = true;
                isWalking = false;
            }
            isWalking = true;
            isRunning = false;
        }
        else
        {
            isWalking = false; isRunning = false;
        }