public void set(int key, boolean down) {
		
		int button = -1;
		
		switch (key) {
		case Keys.UP: button=UP; break;
		case Keys.LEFT: button=LEFT; break;
		case Keys.RIGHT: button=RIGHT; break;
		case Keys.DOWN: button = DOWN; break;
		case Keys.Z: button = Z; break;
		case Keys.X: button = X; break;
		case Keys.SHIFT_RIGHT: button = SELECT; break;
		case Keys.ENTER: button = START; break;
		}
		
		if(button >= 0){
			buttons[button]=down;
		}
		
		
	}