public static void keySet(int i, boolean b) {
		if (i == KeyEvent.VK_UP) {
			keyState[UP] = b;
		} else if (i == KeyEvent.VK_LEFT) {
			keyState[LEFT] = b;
		} else if (i == KeyEvent.VK_RIGHT) {
			keyState[RIGHT] = b;
		} else if (i == KeyEvent.VK_SPACE) {
			keyState[SPACE] = b;
		} else if (i == KeyEvent.VK_ENTER) {
			keyState[ENTER] = b;
		} else if (i == KeyEvent.VK_DOWN) {
			keyState[DOWN] = b;
		} else if (i == KeyEvent.VK_D) {
			keyState[D] = b;
		} else if (i == KeyEvent.VK_U) {
			keyState[U] = b;
		}

	}