public void changeKey(int keyCode)
	{
		if (keyCode != KeyEvent.VK_ESCAPE)
		{
			switch (selectedKey)
			{
			case 0: // do nothing
				break;
			case 1: // left
				if (keyCode != KeyEvent.VK_RIGHT && keyCode != KeyEvent.VK_DOWN && keyCode != KeyEvent.VK_ENTER)
				{
					leftKey = keyCode;
					if (keyCode == rightKey)
						rightKey = KeyEvent.VK_RIGHT;
					if (keyCode == switchKey)
						switchKey = KeyEvent.VK_DOWN;
					if (keyCode == enterKey)
						enterKey = KeyEvent.VK_ENTER;
				}
				break;
			case 2: // right
				if (keyCode != KeyEvent.VK_LEFT && keyCode != KeyEvent.VK_DOWN && keyCode != KeyEvent.VK_ENTER)
				{
					rightKey = keyCode;
					if (keyCode == leftKey)
						leftKey = KeyEvent.VK_LEFT;
					if (keyCode == switchKey)
						switchKey = KeyEvent.VK_DOWN;
					if (keyCode == enterKey)
						enterKey = KeyEvent.VK_ENTER;
				}
				break;
			case 3: // switch
				if (keyCode != KeyEvent.VK_LEFT && keyCode != KeyEvent.VK_RIGHT && keyCode != KeyEvent.VK_ENTER)
				{
					switchKey = keyCode;
					if (keyCode == leftKey)
						leftKey = KeyEvent.VK_LEFT;
					if (keyCode == rightKey)
						rightKey = KeyEvent.VK_RIGHT;
					if (keyCode == enterKey)
						enterKey = KeyEvent.VK_ENTER;
				}
				break;
			case 4: // enter
				if (keyCode != KeyEvent.VK_LEFT && keyCode != KeyEvent.VK_RIGHT && keyCode != KeyEvent.VK_DOWN)
				{
					enterKey = keyCode;
					if (keyCode == leftKey)
						leftKey = KeyEvent.VK_LEFT;
					if (keyCode == rightKey)
						rightKey = KeyEvent.VK_RIGHT;
					if (keyCode == switchKey)
						switchKey = KeyEvent.VK_DOWN;
				}
				break;
			}
			selectedKey = 0;
			keybinding = false;
		}
	}