@Override
	public void keyPressed(KeyEvent e) {
		switch(e.getKeyCode()) {
		case KeyEvent.VK_UP:
			instance.level.getPlayer().move(0, -1);
			break;
		case KeyEvent.VK_RIGHT:
			instance.level.getPlayer().move(1, 0);
			break;
		case KeyEvent.VK_DOWN:
			instance.level.getPlayer().move(0, 1);
			break;
		case KeyEvent.VK_LEFT:
			instance.level.getPlayer().move(-1, 0);
			break;
		case KeyEvent.VK_ESCAPE:
			instance.endGame();
			break;
		}
	}