public boolean isPressed(int kc) {
		if (KeyEvent.VK_A == (char)kc) {
			theMap.getCharacter().setDirection(-1);
			return true;
		} else if (KeyEvent.VK_D == (char)kc) {
			theMap.getCharacter().setDirection(1);
			return true;
		} else if (KeyEvent.VK_ESCAPE == (char)kc) {
			System.exit(0);
			return true;
		} else if (KeyEvent.VK_W == (char)kc){
			theMap.getCharacter().jump();
	
			return true;
		}
		return false;
	}