Script advises for texture flips on 2d games

I am making a 2d game and I was doing pretty good. However, I was making a script for my sprites texture to flip when I press A and D. This is my entire script and a list of my errors if it will help.

#pragma strict

var X : float;

function Start () {

X = transform.localScale.x;

}

function Update () {
if(Input.GetKey.(“a”)){

	transform.localScale.x = X;
}else if(Input.GetKey.("d")){

	transform.localScale.x = -X;
}

}

[23200-unity+help.jpg|23200]

You have getKey.("a") but you don’t need that period in there. (the first error says that "on line 12, expecting ( but saw a . )

It should be:

if(Input.GetKey("a")){
 
       transform.localScale.x = X;
    }

Same thing on line 15