Closing flashlight on scene load

İ got my script running but when i debug the game flashlight starts open how do i fix it ?
my code
#pragma strict

function Update () 
{
    if (Input.GetKeyDown(KeyCode.F))
    {
      if(light.enabled == false)
      {
      light.enabled = true;
      }
      else
      {
      light.enabled = false;
    }
   }
  
}

How is this any different