unity – When pressing both the key then releasing any1 key then the anination is not played

i give the running animation to the character and created a flip script…when press A then player move and flip to leff and animation is played ….when press D then player move and flip to write and animation is played.. ..when i press both A and B Simultanious then animation is played but when pressing both at the same time and release one key the player moves in that direction but the animation is not playing

Here are the script of the player:

(SerializeField) float _xSpeed = 10f;
(SerializeField) float _jumpForce = 10f;

private Rigidbody2D _rb;
private float _movement;
private float _extraJumps;
private bool _isFacingRight;

void Start()
{
    _rb = GetComponent<Rigidbody2D>();
}


void Update()
{
    _movement = Input.GetAxisRaw("Horizontal");
}

void FixedUpdate()
{
    _rb.velocity = new Vector2(_movement * _xSpeed ,_rb.velocity.y);
    {
        if(_isFacingRight == true && _movement > 0.1f)
        {
            Flip();
        }
        else if(_isFacingRight == false && _movement < -0.1f)
        {
            Flip();
        }
    }
    

    if(Input.GetKeyDown(KeyCode.Space))
    {
        _rb.velocity = new Vector2(_rb.velocity.x,_jumpForce * Time.deltaTime);
 
    }

    
}

void Flip()
{

    _isFacingRight = !_isFacingRight;
    transform.Rotate(0,180f,0);

    

}

And here is the script for the animation:

(SerializeField) Transform _player;
private Animator _animator;

void Start()
{
    _animator = GetComponent<Animator>();
}

void Update()
{
    transform.position = _player.position;
    if (Input.GetKeyDown(KeyCode.D))
    {
        _animator.SetBool("Running", true);
    }
    else

    if (Input.GetKeyDown(KeyCode.A))
    {
        _animator.SetBool("Running", true);
    }
    else

    {
        _animator.SetBool("Running", false);
    }
}