How to find out if the keyboard is shown for TMP_Input Field

Hello on InputField, it was possible to check whether the keyboard was shown or not using touchScreenKeyboard!= null. But how to check if the keyboard is shown at TMP_Input Field?

Thank you for responding.

But I will explain what my task was: When entering text in the field, sometimes the keyboard overlaps the input field itself, which is inconvenient. To fix this problem, I lift the input field above the keyboard. In order to raise exactly the field in which the input occurs, I wanted to check who owns the keyboard. Not knowing this, I went out another way:

void Update()
    {
        if (iOpenKeyBoard)
        {
            if (TouchScreenKeyboard.visible)
            {
                float HC = MobileUtilities.GetKeyboardHeight(false);
                Debug.Log(" <color=yellow>" + HC + "</color> ");
                float delta = HC - BottomOld;
                if (delta > 0)   RT_SizePanel.anchoredPosition = new Vector2(0f, delta);
            }
        }
    }

The iOpenKeyBoard variable is updated in the events shown in the figure.

    public void ShowKeyboard(bool show)
    {
        iOpenKeyBoard = show;
    }

Maybe my solution is not the best, but it has worked