Unity Movement Problems,Unity movement problems

So I have been following this guys udemy vids and when it came to making the player controller,I followed everything he did but when I hit play when I press W or S i go up and down instead of forwards and backwards, but when I press A or D it moves the right way Please Help!,So I have followed this guys udemy vids and when it came to player movements I followed everything but when I press W or UpArrow my player goes up and down instead of forwards and backwards but when I press A or D or LeftArrow or RightArrow I move in the right way Please help!

Just make sure the vectors in which you’re moving are correct. So instead of Vector3.up (x : 0, y : 1, z: 0), use Vector3.forward (x: 0, y :0, z : 1). Something like the following:

private void InterpretInput() 
            {
                if (Input.GetKey(KeyCode.W))
                    transform.Translate(Vector3.forward * speed * Time.deltaTime);
    
                if (Input.GetKey(KeyCode.S))
                    transform.Translate(Vector3.back * speed * Time.deltaTime);
            }