My character won't move when i animate

I’m new to Unity, and I’m having problems with my animation for movement. I made the character and animation in Blender(it’s just a ball bouncing up, then landing) but when I incorporated it in the script, the character just stops moving and goes back to the center of the screen and performs the animation without continuing to move. Is there something wrong with my script? Or is that completely unrelated?

public class PlayerController : MonoBehaviour
{

public int movementspeed = 10;

void Start()
{

}

void Update()
{
    if (Input.GetKey(KeyCode.A))
    {
        transform.Translate(Vector3.left * movementspeed * Time.deltaTime);
        GetComponent<Animation>().Play("Bounce");
    }

    if (Input.GetKey(KeyCode.D))
    {
        transform.Translate(Vector3.right * movementspeed * Time.deltaTime);
        GetComponent<Animation>().Play("Bounce");
    }

    if (Input.GetKey(KeyCode.S))
    {
        transform.Translate(Vector3.up * movementspeed * Time.deltaTime);
        GetComponent<Animation>().Play("Bounce");
    }

    if (Input.GetKey(KeyCode.W))
    {
        transform.Translate(Vector3.down * movementspeed * Time.deltaTime);
        GetComponent<Animation>().Play("Bounce");
    }
}

}

Try putting the script on the parent of the animating object, ie

Ball // script here
   gameobject with animation component

Then change

GetComponent()

to

transform.GetChild(0).GetComponent()

Because the animation sometimes sets the position, its best to move the thing above it.