[guided]The goal of this step is to prove nilpotence of $H$. A convenient criterion for that is [Engel's theorem](/theorems/3753): it is enough to show that for every $y \in H$, the map $\operatorname{ad}_H y:H\to H$ is nilpotent.
Fix $y \in H$. We perturb the regular element $x$ in the direction $y$ and define
\begin{align*}
D_t : L &\to L\\
v &\mapsto [x+ty,v]
\end{align*}
for $t \in k$. Since $H$ is already known to be a Lie subalgebra and both $x$ and $y$ lie in $H$, bracketing an element of $H$ with $x+ty$ stays in $H$. Thus $D_t(H)\subset H$, and the restriction
\begin{align*}
A_t:=D_t|_H:H\to H
\end{align*}
is well-defined.
The reason for looking at the quotient $L/H$ is that the generalized zero eigenspace of $D_t$ can only become smaller if the quotient action has no zero generalized vectors. Because $D_t(H)\subset H$, the quotient map
\begin{align*}
\overline{D}_t : L/H &\to L/H\\
v+H &\mapsto D_t v+H
\end{align*}
is well-defined. At $t=0$, the Fitting decomposition gives $L=H\oplus M$, where $M=\operatorname{im}D^n$ and $D|_M:M\to M$ is invertible. Under the identification $L/H\cong M$ induced by the direct sum decomposition, $\overline{D}_0$ is exactly this invertible map. Choose any basis of the finite-dimensional quotient space $L/H$, and define the determinant function
\begin{align*}
q:k &\to k\\
t &\mapsto \det \bigl([\overline{D}_t]_{L/H}\bigr),
\end{align*}
where $[\overline{D}_t]_{L/H}$ is the matrix of $\overline{D}_t$ in that basis. The entries of this matrix depend polynomially on $t$, so $q$ is a polynomial function satisfying $q(0)\ne 0$.
We also chose $x$ so that $\dim_k L_0(x)$ is minimal. In coordinates, this minimality is detected by the nonvanishing of a maximal minor of $(\operatorname{ad}_L u)^n$. Along the affine line $u=x+ty$, that minor becomes a polynomial in $t$ which is nonzero at $t=0$. Because the restricted minor polynomial is nonzero at $t=0$, it is not the zero polynomial. A nonzero polynomial over a field has only finitely many roots. Since $k$ is infinite, there are infinitely many $t$ such that both $q(t)\ne 0$ and $x+ty$ still has minimal generalized zero eigenspace:
\begin{align*}
\dim_k L_0(x+ty)=\dim_k H.
\end{align*}
For such a value of $t$, the quotient map $\overline{D}_t$ is invertible. If a vector $v\in L$ belonged to the generalized zero eigenspace of $D_t$, then for some power $m$ we would have $D_t^m v=0$. Passing to the quotient gives
\begin{align*}
\overline{D}_t^m(v+H)=0.
\end{align*}
Since $\overline{D}_t$ is invertible, this implies $v+H=0$, so $v\in H$. Therefore the whole generalized zero eigenspace $L_0(x+ty)$ lies inside $H$. Inside $H$, it is exactly the generalized zero eigenspace of $A_t$:
\begin{align*}
L_0(x+ty)=\ker(A_t^h),
\qquad h:=\dim_k H.
\end{align*}
But this space has dimension $h$, so $\ker(A_t^h)=H$. Thus $A_t$ is nilpotent for infinitely many $t$.
Now write
\begin{align*}
A:=\operatorname{ad}_H x:H\to H,
\qquad
B:=\operatorname{ad}_H y:H\to H.
\end{align*}
Then $A_t=A+tB$. Let $I_H:H\to H$ denote the identity map on $H$. Define coefficient functions
\begin{align*}
c_j:k &\to k,
\qquad 1\le j\le h,
\end{align*}
by the characteristic polynomial identity
\begin{align*}
\det(\lambda I_H-(A+tB))
=
\lambda^h+c_1(t)\lambda^{h-1}+\cdots+c_h(t).
\end{align*}
The coefficients $c_j$ are polynomials in $t$ because the matrix entries of $A+tB$ are affine polynomial functions of $t$. For infinitely many $t$, the operator $A+tB$ is nilpotent, so its characteristic polynomial is $\lambda^h$. Hence every $c_j(t)$ vanishes for infinitely many $t$. Since $k$ is infinite, each polynomial $c_j$ is identically zero. Looking at the highest-degree term in $t$ inside each coefficient shows that the characteristic coefficients of $B$ are also all zero. Therefore
\begin{align*}
\det(\lambda I_H-B)=\lambda^h.
\end{align*}
By the [Cayley-Hamilton Theorem](/page/Cayley-Hamilton%20Theorem) applied to the endomorphism $B:H\to H$, the equality $\det(\lambda I_H-B)=\lambda^h$ implies $B^h=0$. Since $y\in H$ was arbitrary, $\operatorname{ad}_H y$ is nilpotent for every $y\in H$.
We now verify the hypotheses of [Engel's Theorem](/page/Engel%27s%20Theorem). The space $H$ is finite-dimensional because it is a subspace of the finite-dimensional vector space $L$. The preceding step proved that $H$ is closed under the Lie bracket, so $H$ is a Lie algebra over $k$. Finally, we have just proved that every inner adjoint map $\operatorname{ad}_H y:H\to H$ is nilpotent. Engel's theorem therefore applies and gives that $H$ is nilpotent.[/guided]