@Override
	public void keyPressed(KeyEvent ke) {
		switch (ke.getKeyCode()) {
			case KeyEvent.VK_UP:
				keyState[KeyCode.UP.ordinal()] = true;
				break;

			case KeyEvent.VK_DOWN:
				keyState[KeyCode.DOWN.ordinal()] = true;
				break;

			case KeyEvent.VK_LEFT:
				keyState[KeyCode.LEFT.ordinal()] = true;
				break;

			case KeyEvent.VK_RIGHT:
				keyState[KeyCode.RIGHT.ordinal()] = true;
				break;

			case KeyEvent.VK_ENTER:
				keyState[KeyCode.ENTER.ordinal()] = true;
				break;

			case KeyEvent.VK_SPACE:
				keyState[KeyCode.SPACE.ordinal()] = true;
				break;

			case KeyEvent.VK_P:
				keyState[KeyCode.P.ordinal()] = true;
				break;

			case KeyEvent.VK_ESCAPE:
				keyState[KeyCode.ESCAPE.ordinal()] = true;
				break;

			default:
				break;
		}
	}