@Override
    public void keyPressed(KeyEvent arg0)
    {
	// System.out.println("KP");
	if (arg0.getKeyCode() == KeyEvent.VK_Q)
	{
	    System.out.println("Game Data:");
	    System.out.println(Model.getInstance().getPlayers().size());
	    System.out.println("");
	}
	if ((arg0.getKeyCode() == KeyEvent.VK_W || arg0.getKeyCode() == KeyEvent.VK_A || arg0.getKeyCode() == KeyEvent.VK_S || arg0.getKeyCode() == KeyEvent.VK_D) && Model.getInstance().findUnitByID(LocalModel.getInstance().getMyPlayerID(), LocalModel.getInstance().getUnitTypeDeclaration()).getPreventMovement() == false)
	{
	    
	    if (arg0.getKeyCode() == KeyEvent.VK_W)
	    {
		playerAction("walk", "U");
	    }
	    if (arg0.getKeyCode() == KeyEvent.VK_A)
	    {
		playerAction("walk", "L");
	    }
	    if (arg0.getKeyCode() == KeyEvent.VK_S)
	    {
		playerAction("walk", "D");
	    }
	    if (arg0.getKeyCode() == KeyEvent.VK_D)
	    {
		playerAction("walk", "R");
	    }
	    
	}
	if (arg0.getKeyCode() == KeyEvent.VK_J || arg0.getKeyCode() == KeyEvent.VK_K)
	{
	    if (arg0.getKeyCode() == KeyEvent.VK_J)
	    {
		playerAction("attack", Model.getInstance().findUnitByID(LocalModel.getInstance().getMyPlayerID(), LocalModel.getInstance().getUnitTypeDeclaration()).getDirection());
	    }
	    if (arg0.getKeyCode() == KeyEvent.VK_K)
	    {
		playerAction("defend", Model.getInstance().findUnitByID(LocalModel.getInstance().getMyPlayerID(), LocalModel.getInstance().getUnitTypeDeclaration()).getDirection());
	    }
	}
	
    }