public void setKey(int k, boolean pressed){
		switch(k){
		case KeyEvent.VK_UP:
			if(pressed){
				if(selected <= 0)
					selected = numOptions - 1;
				else
					selected--;
			}
			break;
		case KeyEvent.VK_DOWN:
			if(pressed ){
				if(selected >= numOptions - 1)
					selected = 0;
				else
					selected++;
			}
			break;
		case KeyEvent.VK_ENTER:
			if(selected == 0)
				gsm.setState(1);
			break;
		case 3:
			break;
		}
	}