Update function - Auto update

I’m currently doing something as making the camera move while holding down the “W” button, yet the Update() function doesn’t seem to be automatically updating and reacting to my multiplication of deltaTime.

if(Input.GetButton("Forward")) { transform.position += transform.forward * moveSpeed * Time.deltaTime; }

I press the “W” button and it moves forward. I hold the “W” button and it moves once and only once. Am I missing something?

I’ve found the problem. I was working with a tutorial and did not distinguish between GetButtonDown and GetButton. Using GetButtonDown was not letting the scene update. Thanks for the help hellcats.