Controls help please!

In unity, I made a project and I added in a sphere. My input settings are set to the defaults (up and down keys and w and s keys for forward and backward, left and right keys and a and d keys for left and right) and I added in a sphere to the game. I played the game and I tried all 8 keys but my sphere wouldn’t drop to the plane or move forward, backward, left, or right. I have a sphere collider on it and a character controller but it still wouldn’t work.

Can somebody please tell me what I’m doing wrong?

You need to write a script to do the job, and drag this script to the sphere. A good example is given in 1 - it includes gravity and jump (spacebar). The example script is:

var speed : float = 6.0;
var jumpSpeed : float = 8.0;
var gravity : float = 20.0;

private var moveDirection : Vector3 =;

function Update() {
    var controller : CharacterController = GetComponent(CharacterController);
    if (controller.isGrounded) {
        // We are grounded, so recalculate
        // move direction directly from axes
        moveDirection = Vector3(Input.GetAxis("Horizontal"), 0,
        moveDirection = transform.TransformDirection(moveDirection);
        moveDirection *= speed;
        if (Input.GetButton ("Jump")) {
            moveDirection.y = jumpSpeed;

    // Apply gravity
    moveDirection.y -= gravity * Time.deltaTime;
    // Move the controller
    controller.Move(moveDirection * Time.deltaTime);