animations problem

so i got my animations done and everything in animator like to show run when speed is more than normal speed and so on. But i need to code it and i got done walk animation but now i just need do it to run and problem starts. i dont know how to make run work so i tried to do same thing that i did with walking but it s not working. Can you help? Here is some code:
animator.SetFloat(“speed”, Mathf.Abs(x + z));

    if (Input.GetKey(KeyCode.LeftShift))
    {
        movespeed = RunningSpeed;
        animator.SetFloat("speed", Mathf.Abs(x + z));
    }
    else
    {
        movespeed = speed;
    }

I modify the Animator Speed directly:

 if (Input.GetKey(KeyCode.LeftShift))
 {
     movespeed = RunningSpeed;
     animator.speed = 2;
 }
 else
 {
    movespeed = speed;
    animator.speed = 1;
 }