public void keyPressed(KeyEvent e) {
		if (e.getKeyChar() == 'a' || e.getKeyChar() == 'A') {
			theMap.getCharacter().setDirection(-1);
		} else if (e.getKeyChar() == 'd' || e.getKeyChar() == 'D') {
			theMap.getCharacter().setDirection(1);
		} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
			System.exit(0);
		} else if (e.getKeyCode() == KeyEvent.VK_W){
			theMap.getCharacter().jump();
		}

	}