@Override
    public void keyReleased(KeyEvent arg0)
    {
	if (arg0.getKeyCode() == KeyEvent.VK_W || arg0.getKeyCode() == KeyEvent.VK_A || arg0.getKeyCode() == KeyEvent.VK_S || arg0.getKeyCode() == KeyEvent.VK_D)
	{
	    if (arg0.getKeyCode() == KeyEvent.VK_W)
	    {
		playerAction("halt", "U");
	    }
	    if (arg0.getKeyCode() == KeyEvent.VK_A)
	    {
		playerAction("halt", "L");
	    }
	    if (arg0.getKeyCode() == KeyEvent.VK_S)
	    {
		playerAction("halt", "D");
	    }
	    if (arg0.getKeyCode() == KeyEvent.VK_D)
	    {
		playerAction("halt", "R");
	    }
	}
	if (arg0.getKeyCode() == KeyEvent.VK_K)
	{
	    playerAction("stop_defend", Model.getInstance().findUnitByID(LocalModel.getInstance().getMyPlayerID(), LocalModel.getInstance().getUnitTypeDeclaration()).getDirection());
	}
	
    }