Main Menu GetAxis woes

So I’ve been working on a main menu. As Im making my game for the Ouya, I need a main main controlled get a controller. I’ve got a grid of buttons set up but when I put in the input on the joystick, it keeps scrolling extremely fast through the options. Is there any way to pause the script after every input so it cant do this? Using JS.

I don’t know the method names or anything, so here’s some pseudo-code.

var isScrolling : bool = false;

function OnScroll()
{
	if(!isScrolling)
	{
		//Do your code
		isScrolling = true;
	}
}

function OnEndScroll()
{
	if(isScrolling)
		isScrolling = false;
}