Rotate and move the sphere while the up key is pressed

I'm kinda new to unity scripting and i can't manage to make my ball rotate and in the same time moving while the up button is pressed. My code attached to the sphere looks like this but unfortunately is not rotating the ball:

//Moving around and jump 
private var moveDirection : Vector3 = Vector3.zero;
var speed : float = 6.0;
var jumpSpeed : float = 8.0;
var gravity : float = 20.0;
//Rotate the ball while moving
private var thisObj : Transform;
var rotSpeed = 10.0;

function Start()
{
// Cachhe the transform link` 
thisObj = this.transform; }
function Update() {
    var controller : CharacterController = GetComponent(CharacterController);
    if (controller.isGrounded){ 
            moveDirection = Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
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);
    transform.LookAt(target);}

function LateUpdate() {
    if (Input.GetButton("up"))      {
    thisObj.Rotate(0, Time.deltaTime*rotSpeed, 0, Space.World);     }
}

stick these variables in (adjust as necessary)

var TurnSpeed : float = 50;

put this under the starndard update function under if controller is grounded.(change the axis after eulerAngles if it's not the right rotation)

transform.eulerAngles.x += Input.GetButton("up")*(Time.deltaTime*TurnSpeed)