private Keycode convertKeycode(int extendedKeycode)
	{
		switch (extendedKeycode) {
			case 65: // 'A'
			case 37: // Arrow Left
				return Keycode.LEFT;
			case 68: // 'D'
			case 39: // Arrow Right
				return Keycode.RIGHT;
			case 87: // 'W'
			case 38: // Arrow Up
				return Keycode.UP;
			case 83: // 'S'
			case 40: // Arrow Down
				return Keycode.DOWN;
			case 81: // 'Q for quit'
				return Keycode.QUIT;
			default:
				return Keycode.IGNORE;
		}
	}