void Update()
    {
        if (textDelay || choiceHandler.choicesShown || gameEnded)
        {
            return;
        }

        bool input = false;

        foreach (KeyCode kC in Options.Instance.nextSentenceInput)
        {
            if (Input.GetKeyDown(kC))
            {
                input = true;
            }
        }

        if (input && canClick)
        {
            if (histo.historicShown)
            {
                histo.CloseHistoric();
            }
            else if (!textWriter.isWriting)
            {
                if (myList [count].choices.Count > 0)
                {
                    choiceHandler.DisplayChoices(myList [count]);
                    return;
                }

                if (!myList [count].isSMS)
                {
                    currentSprites = imageHandler.CheckImagesAfterSentence(currentSprites);
                }

                if (imageHandler.canInterupt)
                {
                    UpdateIndex();
                }
            }
            else
            {
                textWriter.FinishText();
            }
        }
        else if (Input.GetAxis("Mouse ScrollWheel") > 0 && !histo.historicShown && canShowHistoric)
        {
            histo.ShowHistoric();
        }
        else
        {
            input = false;

            foreach (KeyCode kC in Options.Instance.openMenuInput)
            {
                if (Input.GetKeyDown(kC))
                {
                    input = true;
                }
            }
            if (input)
            {
                if (pauseMenu.menuShown)
                {
                    ClosePauseMenu();
                }
                else
                {
                    ShowPauseMenu();
                }
            }
        }
    }