private void HandleActions()
    {
        anim.SetBool("Attacking", false);
        if (Input.GetMouseButtonDown(0))
        {
            anim.SetBool("Attacking", true);
        }
        if (Input.GetMouseButtonDown(1))
        {
            if (!isKeyPressed)
            {
                isKeyPressed = true;

                if (stats.castCounter == 0 && !sr.cancelling)
                {
#if !UNITY_EDITOR && UNITY_WEBGL
                    RequestAction();
#else
                    TriggerAction(sendSkill);
#endif
                }
                else
                {
                    stats.EndSpell();
                }
            }
        }
        else if (isKeyPressed)
        {
            isKeyPressed = false;
        }
    }