Need help with move script

Hello,
I have been trying to make a non-humanoid character move. I have got this far in the scripting process:

using UnityEngine;
using System.Collections;

public class Move4 : MonoBehaviour {

	void Update () {
	
	 float speed = 6.0f;
	float movement = 6.0f;

	float move = movement * speed * Time.deltaTime;
		
		if (Input.GetKeyDown ("w")) 
		{
			transform.Translate(0.0f, 0.0f, move);
		}

}

}

This makes my object move, however it doesn’t keep moving when I hold the “w”
key. I would press it and it would only move 6 units and then I would have to press “w” again. I have tried using Time.deltaTime but it wouldn’t work. Any suggestions. Thank You.

There is a difference between GetKeyDown, which returns true during a frame and GetKey, which returns true while it is held down. Please see the documentation lines in the previous sentence.