Why won't this compile?

I get an error for an unknown Identifier, yet I don’t know how to fix it. Can someone help me with this?

#pragma strict

function Start () {

}

function Update () {
if(Input.GetKeyDown (KeyCode.A))
Transform.Translate(Vector3(-3,0,0));
if(Input.GetKeyDown (KeyCode.D))
Transform.Translate(Vector3(3,0,0));
}

#pragma strict

    function Start () 
	{
     
    }
     
    function Update () 
	{
		if(Input.GetKeyDown (KeyCode.A))
		{
			transform.Translate(Vector3(-3,0,0));
		}
		
		if(Input.GetKeyDown (KeyCode.D))
		{
			transform.Translate(Vector3(3,0,0));
		}	
    }

Is working fine on my end.