public void keyPressed(KeyEvent key){	


		//WASD moves
		origX = x; 
		origY = y;
		switch (key.getKeyChar()){
		case 'w'	    :	 this.y = this.y - logicHandler.getPlayer().getSpeed(); break;
		case 'a'	    :  	 this.x = this.x - logicHandler.getPlayer().getSpeed(); break;
		case 'd'	    :	 this.x = this.x + logicHandler.getPlayer().getSpeed(); break;
		case 's'		:	 this.y = this.y + logicHandler.getPlayer().getSpeed(); break;
		default			:	return;
		}

		canvas.clear();
		//Writes last received input.
		canvas.write(key.getKeyChar(),7,23,RoguePanel.white,RoguePanel.black);
		moveHero();
		moveMonster();


		checkPlayerStatus();
		checkAllMonsterStatus();
		trackDiscovery();

		canvas.recordShadows(discoveredArea);
		if(logicHandler.getGameOver()==false)
		    canvas.setInGame(true);
		else
		    canvas.setInGame(false);
		canvas.repaint();
	}