public void update(){
		
		
		if(key.right && !pressed){
			index++;
			pressed = true;
		}
		
		if(key.left && !pressed){
			index--;
			pressed = true;
		}
		
		
		
		if(index < 0) index = nItems - 1;
		if(index > nItems - 1) index = 0;
		
		
		if(pressed){
			pressTimer++;
		}
		
		if(pressTimer == 10){
			pressed = false;
			pressTimer = 0;
		}
		
		if(indexP != index){
			MenuItems[index].select();
			MenuItems[indexP].unselect();
		}
		
		if(key.enter && MenuItems[index] != null && !pressed ) MenuItems[index].activate();
		indexP = index;
		
 	}