private ButtonType getButtonType(int keyCode) {
		switch (keyCode) {
			case KeyEvent.VK_UP:
				return ButtonType.Up;
			case KeyEvent.VK_DOWN:
				return ButtonType.Down;
			case KeyEvent.VK_LEFT:
				return ButtonType.Left;
			case KeyEvent.VK_RIGHT:
				return ButtonType.Right;
			case KeyEvent.VK_SPACE:
				return ButtonType.A;
			case KeyEvent.VK_CONTROL:
				return ButtonType.B;
			case KeyEvent.VK_ENTER:
			case KeyEvent.VK_ESCAPE:
				return ButtonType.Start;
		}
		return null;
	}