Instantiate not working with keyed

I’m starting to make a script for a grappling hook, but when I try to instantiate the soon to be grapple, nothing happens.

var grapple: Transform;

function Start () {

}

function Update () {

	Grappling ();

}

function Grappling () {

	if (Input.GetKeyDown == ("KeyCode.F"))
	{
		var newGrapple = Instantiate(grapple, transform.position, Quaternion.identity);
	}
}

shouldn’t it be the same as in c#?

if (Input.GetKeyDown(KeyCode.F)){

}