@Override
	public void keyReleased(KeyEvent e) {
		//only checks for user input if the game has started

		if(gameStarted){

			if (KeyEvent.getKeyText(e.getKeyCode()).equals("Escape")) {
				// if the in game menu is up, close it
				if (ingameMenuActive) {
					closeIngameMenu();
				} else {
					// otherwise bring up the ingame menu
					showIngameMenu();
				}
			}

			if (KeyEvent.getKeyText(e.getKeyCode()).equals("Enter")) {
				// if the in game menu is up, close it
				if (chatActive) {
					closeChat();
				} else {
					// otherwise bring up the ingame menu
					showChat();
				}
			}

			//resets descriptiontext
			descriptionLabel.setText("");

			gamePanel.update();
		}


	}