I added another axis so that I could control the y axis position as well, here’s the code!
float xValue = Input.GetAxis("Horizontal");
float zValue = Input.GetAxis("Vertical");
float yValue = Input.GetAxis("UpAndDown");
transform.Translate(xValue, yValue, zValue);