[guided]Let us trace through the inductive step carefully for $k = 2$ (i.e., $\omega \in \Omega^2(M)$, so $d\omega$ is a $3$-form) to see how the pattern works.
Write $\omega = f \, dg \wedge dh$. Then $d\omega = df \wedge dg \wedge dh$. We need to show
\begin{align*}
d\omega(X,Y,Z) = X\omega(Y,Z) - Y\omega(X,Z) + Z\omega(X,Y) - \omega([X,Y],Z) + \omega([X,Z],Y) - \omega([Y,Z],X).
\end{align*}
The left side is $(df \wedge dg \wedge dh)(X,Y,Z)$. Expanding the determinant formula for a $3 \times 3$ alternating multilinear map on one-forms:
\begin{align*}
d\omega(X,Y,Z) = (Xf)\bigl[(Yg)(Zh)-(Zg)(Yh)\bigr] - (Yf)\bigl[(Xg)(Zh)-(Zg)(Xh)\bigr] + (Zf)\bigl[(Xg)(Yh)-(Yg)(Xh)\bigr].
\end{align*}
Now we compute the right side. We have $\omega(A,B) = f\bigl[(Ag)(Bh)-(Bg)(Ah)\bigr]$ for vector fields $A,B$. So, for instance,
\begin{align*}
X\omega(Y,Z) &= X\bigl(f(Yg)(Zh) - f(Zg)(Yh)\bigr) \\
&= (Xf)(Yg)(Zh) + f X(Yg)(Zh) + f(Yg)X(Zh) \\
&\quad - (Xf)(Zg)(Yh) - fX(Zg)(Yh) - f(Zg)X(Yh).
\end{align*}
Each of the six terms in the right-hand side formula generates an expansion of this kind. The first-order terms (containing exactly one factor of $Xf$, $Yf$, $Zf$, $Xg$, $Yg$, $Zg$, $Xh$, $Yh$, $Zh$) match exactly the expansion of $d\omega(X,Y,Z)$ above.
The second-order terms (like $fX(Yg)$) arise in the "action" terms from $X\omega(Y,Z)$, $Y\omega(X,Z)$, and $Z\omega(X,Y)$. These are eliminated by the bracket terms: for example, $fX(Yg)(Zh) - fY(Xg)(Zh)$ appears exactly as $f[X,Y](g)(Zh)$, and $(Zh) \cdot f [X,Y]g = \omega([X,Y],Z)\big|_{\text{part}} $. Summing all such contributions from the three bracket terms $\omega([X,Y],Z)$, $\omega([X,Z],Y)$, $\omega([Y,Z],X)$ accounts for all second-order terms, leaving precisely the first-order expression for $d\omega(X,Y,Z)$.
The pattern for general $k$ is the same: the bracket terms $\sum_{i < j}(-1)^{i+j}\omega([X_i,X_j],\dots)$ are the correction terms that absorb all second-order derivatives from the action terms $\sum_i (-1)^{i+1} X_i \omega(\dots)$, and after cancellation only the terms matching $d\omega(X_1,\dots,X_{k+1})$ remain.[/guided]