public void keyReleased(KeyEvent e) {
			if (e.getKeyChar() == 'a' || e.getKeyChar() == 'A') {
				theMap.getCharacter().setDirection(0);
			} else if (e.getKeyChar() == 'd' || e.getKeyChar() == 'D') {
				theMap.getCharacter().setDirection(0);
			}
			theMap.getCharacter().setDirection(0);
	}