[guided]The quotient $\mathfrak h/\mathfrak k$ is one-dimensional, so choose an element $X \in \mathfrak h$ whose coset spans it. Then every element of $\mathfrak h$ can be written as $A+cX$ with $A \in \mathfrak k$ and $c \in F$. Since $\mathfrak k$ is an ideal, commutators with $X$ stay inside $\mathfrak k$:
\begin{align*}
[X,A]\in \mathfrak k
\end{align*}
for every $A \in \mathfrak k$.
The main point is to prove that the common eigenspace $W$ is preserved by $X$. If $w\in W$, then for $A\in\mathfrak k$,
\begin{align*}
A(Xw)=X(Aw)+[A,X]w.
\end{align*}
The first term is $\mu(A)Xw$. The second term would obstruct $Xw$ from lying in $W$, so we must prove
\begin{align*}
\mu([A,X])=0.
\end{align*}
Fix $A\in\mathfrak k$. We prove this vanishing by a trace argument on a finite-dimensional $X$-cyclic subspace. Let $m\in\mathbb N$ be the smallest positive integer for which
\begin{align*}
v_0, Xv_0, \dots, X^m v_0
\end{align*}
are linearly dependent. Define
\begin{align*}
U:=\operatorname{span}_F\{v_0,Xv_0,\dots,X^{m-1}v_0\}.
\end{align*}
By minimality, the displayed spanning vectors form a basis of $U$, and the first dependence relation expresses $X^m v_0$ in $U$. Hence $X(U)\subseteq U$.
Next we show that every $B\in\mathfrak k$ also preserves $U$, and more precisely has upper triangular matrix with diagonal entries $\mu(B)$ in the basis
\begin{align*}
(v_0,Xv_0,\dots,X^{m-1}v_0).
\end{align*}
For $j=0$, the assertion is
\begin{align*}
Bv_0=\mu(B)v_0,
\end{align*}
which holds because $v_0\in W$. Suppose the assertion is known for $j-1$. Using $BX=XB+[B,X]$, we compute
\begin{align*}
B X^jv_0
&= X B X^{j-1}v_0 + [B,X]X^{j-1}v_0.
\end{align*}
By the induction hypothesis applied to $B$, the vector $BX^{j-1}v_0-\mu(B)X^{j-1}v_0$ lies in $\operatorname{span}_F\{v_0,\dots,X^{j-2}v_0\}$; applying $X$ sends it into $\operatorname{span}_F\{v_0,\dots,X^{j-1}v_0\}$. Since $[B,X]\in\mathfrak k$, the induction hypothesis applied to $[B,X]$ shows that $[B,X]X^{j-1}v_0$ also lies in $\operatorname{span}_F\{v_0,\dots,X^{j-1}v_0\}$. Therefore
\begin{align*}
B X^jv_0-\mu(B)X^jv_0 \in \operatorname{span}_F\{v_0,\dots,X^{j-1}v_0\}.
\end{align*}
This proves the triangular form.
Apply this conclusion to $B=[X,A]$. Since the diagonal entries of $([X,A])|_U$ are all $\mu([X,A])$, we have
\begin{align*}
\operatorname{tr}(([X,A])|_U)=m\,\mu([X,A]).
\end{align*}
But $U$ is invariant under both $X$ and $A$, so
\begin{align*}
([X,A])|_U=X|_U A|_U-A|_U X|_U.
\end{align*}
The trace of a commutator of two endomorphisms of a finite-dimensional vector space is $0$, because $\operatorname{tr}(PQ)=\operatorname{tr}(QP)$. Hence
\begin{align*}
m\,\mu([X,A])=0.
\end{align*}
Since $m\geq 1$ and the field has characteristic $0$, multiplication by $m$ is injective in $F$, so
\begin{align*}
\mu([X,A])=0.
\end{align*}
Finally, let $w\in W$ and $A\in\mathfrak k$. Then $[A,X]=-[X,A]$, so $\mu([A,X])=0$. Therefore
\begin{align*}
A(Xw)
&= X(Aw)+[A,X]w \\
&= X(\mu(A)w)+\mu([A,X])w \\
&= \mu(A)Xw.
\end{align*}
This holds for every $A\in\mathfrak k$, so $Xw\in W$. Thus $X(W)\subseteq W$.[/guided]