GUI Keyboard Shortcuts: Press and Hold.

I’m a complete JS noob, but I’m picking it up quickly.

Trying to figure out how to make shortcut buttons in the gui so that you have to hold them down for about 1 second. Below is my code. For instance how would I script it so that you ahve to hold the key for at least 1 second for the scores to change?

    }
	    if (Input.GetKeyDown ("b")) {
		scores.questCurrent += 1;
		scores.score += 3;
		scores.mana -= 1;
		scores.round = 0; //set back to normal round
		scores.scoreLast = 3;
    }

Any help would be MUCHLY apreciated.

Cheers,
BeN

//how long we wait before we react
var WaitTime = 1.0;

// Internal time when key was pressed 
private var DownTime : float;
private var isHandled : boolean = false;


function Update () 
{
	if (Input.GetKeyDown ("b"))
	{ //Key was pressed down, so take up time.
		DownTime = Time.time;
		isHandled = false;
	}
   if (Input.GetKey("b")) // is key still being hold down... 
    {	
		// And is it been hold over the time we want and is not handled yet?
		if((Time.time > DownTime + WaitTime)  !isHandled) 
		{
			// We've been here, don't do this again until button is pressed again.
			isHandled = true; 
			// Do Something here
			Debug.Log("Key \"B\" was pressed over " + WaitTime +" seconds.") ;
		}
	}
}