public void keyPressed(KeyEvent e) {
		if (!chatMode)
		{
			if (e.getKeyCode() == KeyEvent.VK_W)
				w = true;
			if (e.getKeyCode() == KeyEvent.VK_A)
				a = true;
			if (e.getKeyCode() == KeyEvent.VK_S)
				s = true;
			if (e.getKeyCode() == KeyEvent.VK_D)
				d = true;
			if (e.getKeyCode() == KeyEvent.VK_ENTER)
				chatMode = true;
		}
		else if (e.getKeyCode() == KeyEvent.VK_ENTER)
		{
			if (!chatField.getText().isEmpty())
			{
				printMessage(myPlayer.getName()+": "+chatField.getText());
				chatQueue.add(new String(myPlayer.getName()+": "+chatField.getText()));
				chatField.setText("");
			}
			chatMode = false;
		}
	}