[guided]The point of this step is to translate invariance of the Killing form into invariance of the inverse tensor $T$. For each $X\in\mathfrak g$, we define
\begin{align*}
D_X:\mathfrak g\otimes_k\mathfrak g\to \mathfrak g\otimes_k\mathfrak g
\end{align*}
by
\begin{align*}
D_X(a\otimes b)=[X,a]\otimes b+a\otimes [X,b].
\end{align*}
This is the diagonal adjoint action on the [tensor product](/page/Tensor%20Product): $X$ acts on the first factor and on the second factor, and the two contributions are added.
We want to prove $D_X(T)=0$. Instead of computing directly in a basis, we use the isomorphism
\begin{align*}
\Lambda:\mathfrak g\otimes_k\mathfrak g\to \operatorname{End}_k(\mathfrak g)
\end{align*}
defined by
\begin{align*}
\Lambda(a\otimes b)(Y)=B(b,Y)a.
\end{align*}
Since $\Lambda(T)=\operatorname{id}_{\mathfrak g}$, it is enough to understand how $D_X$ appears after applying $\Lambda$.
Let $a,b,Y\in\mathfrak g$. By the definition of $D_X$ and $\Lambda$,
\begin{align*}
\Lambda(D_X(a\otimes b))(Y)=B(b,Y)[X,a]+B([X,b],Y)a.
\end{align*}
The second term is the only place where invariance of the Killing form is used. Invariance says
\begin{align*}
B([X,b],Y)+B(b,[X,Y])=0,
\end{align*}
and hence
\begin{align*}
B([X,b],Y)=-B(b,[X,Y]).
\end{align*}
Substituting this into the previous formula gives
\begin{align*}
\Lambda(D_X(a\otimes b))(Y)=B(b,Y)[X,a]-B(b,[X,Y])a.
\end{align*}
Now compare this with the commutator of endomorphisms. Since
\begin{align*}
\Lambda(a\otimes b)(Y)=B(b,Y)a,
\end{align*}
we have
\begin{align*}
(\operatorname{ad}_X\circ \Lambda(a\otimes b))(Y)=B(b,Y)[X,a],
\end{align*}
and
\begin{align*}
(\Lambda(a\otimes b)\circ \operatorname{ad}_X)(Y)=B(b,[X,Y])a.
\end{align*}
Therefore
\begin{align*}
\Lambda(D_X(a\otimes b))(Y)=(\operatorname{ad}_X\circ \Lambda(a\otimes b)-\Lambda(a\otimes b)\circ \operatorname{ad}_X)(Y).
\end{align*}
By linearity, for every $S\in\mathfrak g\otimes_k\mathfrak g$,
\begin{align*}
\Lambda(D_XS)=\operatorname{ad}_X\circ \Lambda(S)-\Lambda(S)\circ \operatorname{ad}_X.
\end{align*}
Apply this identity to $S=T$. Since $\Lambda(T)=\operatorname{id}_{\mathfrak g}$,
\begin{align*}
\Lambda(D_XT)=\operatorname{ad}_X\circ \operatorname{id}_{\mathfrak g}-\operatorname{id}_{\mathfrak g}\circ \operatorname{ad}_X=0.
\end{align*}
The map $\Lambda$ is injective, so
\begin{align*}
D_XT=0.
\end{align*}
Thus the inverse Killing tensor is fixed by the diagonal adjoint action of every $X\in\mathfrak g$.[/guided]