Adding Left Shift button to my walk so I can run,

I am trying to add the shift button to this code so that while walking I can hold shift simultaneously so I start running. Any help please.

private Animator animComp;
// Use this for initialization
void Start()
{

    animComp = this.GetComponent<Animator>();

}

// Update is called once per frame
void Update()
{

    if (Input.GetKeyDown(KeyCode.RightArrow))
    {
        animComp.SetInteger("RonState", 1);
    }
    if (Input.GetKeyUp(KeyCode.RightArrow))
    {
        animComp.SetInteger("RonState", 0);
    }
   
}

}

Coding quickly you could do it like this,

if (Input.GetKey(KeyCode.RightArrow)) //Note GetKey() returns true if the key is currently being pressed. 
{
      if (Input.GetKey(KeyCode.LeftShift))
            animComp.SetInteger("RonState", 2); //This is the running state
      else
            animComp.SetInteger("RonState", 1); //Walking state
}
else
{
      animComp.SetInteger("RonState", 0); //Idle state
}

You could also structure it differently, and handle the transitions to running/walking in your animator state machine

animComp.SetBool("Walking", Input.GetKey(KeyCode.RightArrow));
animComp.SetBool("Running",Input.GetKey(KeyCode.LeftShift))

Or you could pass the character’s velocity to the animator, and use a Blend Tree to smoothly transition from walking to running. When you hold shift, you would add velocity to make the character move faster. I think this is covered in this tutorial Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn

animComp.SetFloat("Velocity",GetComponent<Rigidbody>().velocity.magnitude);

Best of luck starting Unity :)!