Keyboard input not working

Apologies for asking this when it’s been asked several times before, but none of the answers given seem to apply to my situation (although there’s a good chance that it’ll turn out to be something that’s obvious that I’m not seeing).

Here’s a previous thread link text which links to an earlier thread. I have the same issue: I’m trying the Roll a Ball: Moving a Player tutorial and I get no input from my keyboard when I’m in Play mode.

This is my script:

using UnityEngine;
using System.Collections;

public class PlayerController : MonoBehaviour {

	public float speed;

	void FixedUpdate ()
		float moveHorizontal = Input.GetAxis("Horizontal");
		float moveVertical = Input.GetAxis("Vertical");

		Vector3 movement = new Vector3 (moveHorizontal, 0.0F, moveVertical);

		rigidbody.AddForce (movement * speed * Time.deltaTime);

Here are some Inspector screenshots.

Input Manager:


As far as I can see everything is the same as in the tutorial, but feel free to point out the obvious newbie mistake that I’ve missed!

Thanks in advance for your help.

there is a checkbox next to the picture of the file with the c# symbol in it. (Left of the name of class)

check it to activate it.