I’m having trouble with SetBool and animations on Unity. Can anyone help me?

I’m trying to get a Skeleton Model to go from its walking animation to its idle animation using a bool that checks for input. Currently, in-game, the skeleton doesn’t leave it’s walking animation and stays in it even when not walking. I’ve posted my code below. I’m kind of stumped so if anyone can give me some guidance it’d be greatly appreciated.

public class SkeletonMove : MonoBehaviour {  private float velocity = 5f;  public bool _isWalking = false;  Vector2 input;  void Update()     {         GetInput();          if (Mathf.Abs(input.x) < 1 && Mathf.Abs(input.y) < 1) return;          // CalculatedDirection();         Rotate();         Move();     }  void GetInput()     {         input.x = Input.GetAxisRaw("Horizontal");         input.y = Input.GetAxisRaw("Vertical");     }  void Move()     {         _controller.Move(transform.forward * velocity * Time.deltaTime);         _anim.SetBool("Walking", _isWalking);           if (input.x != 0 || input.y != 0)         {             _isWalking = true;         }          if (input.x == 0 && input.y == 0)         {             _isWalking = false;         }            //transform.position += transform.forward * velocity * Time.deltaTime;     }