Character input key doesnt work

I want to control my character with input key,for example i wanna run my character when i press the w button,for this i add a run animation to my character and i write a simple script code but when i run the project Ethan(my character) doesnt move or doesnt idle,nothing happens,can anyone help?

public Rigidbody rb;
public float thrust;
	// Use this for initialization
	void Start () {
		rb = GetComponent<Rigidbody> ();
	}
	
	// Update is called once per frame
	void Update () {
	
		rb.AddForce (transform.forward * thrust);
		if (Input.GetKeyDown ("w")) {
			GetComponent<Animation>().Play("HumanoidRun");

		}

GetKeyDown when using a string is looking for a key as named in the Input manager of Unity.

By default, it will be called “Vertical” and is an axis. This is generally how you want to use the input, as an axis.

If you want to avoid the Unity input then you should be checking Input.GetKeyDown(KeyCode.W);

This will tell you the frame that the W key is pressed in. If you want to know if the button is being pressed, then just use GetKey(KeyCode.W)