Trying to make animations without blend trees but its only playing the idle animation

public class AnimController : MonoBehaviour
{

    public GameObject Player;
    public Animator Animator;

    
    void Update()
    {
        if ((Input.GetKeyDown(KeyCode.A)) || (Input.GetKeyDown(KeyCode.D)))
        {
            Animator.Play("Run");
        }
        else
        {
            Animator.Play("Idle");
        }
    }
}

I finally got it I moved the code to my controller and instead of key presses I did it by checking if its -5 velocity or 5 velocity.