mouselook off/on code

Hi, I'm using the standard FPS controller and have a textfield in my program. To prevent the camera swinging around wildly I want the User to be able to momentarily disable the mouselook by holding down the Tab key. I've pieced together the following code but get errors with it..(semicolon missing in the first line). Can someone help me correct it, thanks.

    Static var isGamePaused : Boolean = false;

function Update (){
if(Input.GetKeyDown(KeyCode.tab)){
      if(!isGamePaused){
            isGamePaused = true;
            GameObject.Find("First Person Controller").GetComponent("MouseLook").enabled = false;
            GameObject.Find("Main Camera").GetComponent("MouseLook").enabled = false;
      }
}

if(Input.GetKeyDown(KeyCode.tab)){
      if (isGamePaused){
            isGamePaused = false;
            GameObject.Find("First Person Controller").GetComponent("MouseLook").enabled = true;
            GameObject.Find("Main Camera").GetComponent("MouseLook").enabled = true;
      }
}
}

What errors?

BTW Here's how I might approach it:

function Update ()
{
  Camera.main.GetComponent("MouseLook").enabled = !Input.GetKey(Keycode.tab);
}

or better

var ml : MouseLook;

function Start()
{
  ml = Camera.main.GetComponent("MouseLook");
}

function Update ()
{
  ml.enabled = !Input.GetKey(Keycode.tab);
}