Please use Code Tags when pasting code.
In that code you pasted, your two Speed fields don’t have semicolons at the end.
In the Update function, you have “rot()” which should just be “rot”, because it’s a value not a method.
You can probably accomplish the same thing like this (untested):
private void Update() {
float eulerDeltaZ = Input.GetAxis("Horizontal") * rotSpeed * Time.deltaTime;
transform.Rotate(0, 0, eulerDeltaZ);
float positionDeltaY = Input.GetAxis("Vertical") * maxSpeed * Time.deltaTime;
transform.Translate(0f, positionDeltaY, 0f);
}