Player moving on it's own rather than when arrow key pressed,Character moving as soon as scene starts rather than when button pressed

I have been following the rolling ball tutorial and I have got a problem with the character moving as soon as the script is ran rather than when the button is pressed like I want it too. Can someone pleas point me in the right direction with this?

using System.Collections;
using UnityEngine;

public class PlayerController : MonoBehaviour {
	public float speed;
	private Rigidbody rb;

	void Start ()
	{
		rb = GetComponent<Rigidbody> ();
	}

	void update ()
	{
		if (Input.GetKey (KeyCode.UpArrow)) {
			Vector3 position = this.transform.position;
			position.y++;
			this.transform.position = position;
		}

		if (Input.GetKey (KeyCode.DownArrow)) {
			Vector3 position = this.transform.position;
			position.y--;
			this.transform.position = position;
		}
	}

	void FixedUpdate ()
	{
		float moveHorizontal = Input.GetAxis ("Horizontal");
		float moveVertical = Input.GetAxis ("Vertical");
		Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
		rb.AddForce (movement * speed);
	}


	}

Thank you this is sorted now :slight_smile:

As Codez mentioned, unity picks up the methods case sensitive.
So it should be Update instead of update.
But that’s not the actual issue, in your FixedUpdate
you are adding force to the rigidbody which is causing the movement.