Stephen's answer briefly mentions group cohomology. I can't resist and point out that Maschke's theorem can be viewed (or rephrased) as a consequence of group cohomology.
To see this, fix a group $G$ and a field $K$. Denote by $K[G]$ the group ring of $G$ over $K.$ Let $K[G]\mathsf{-mod}$ be the category of $K[G]$-modules.
First, note that the following are equivalent:
- Any $K[G]$-submodule $V$ of any $K[G]$-module has a $G$-invariant complement.
- Every $K[G]$-module is projective.
- Every $K[G]$-module is injective.
- The functor $h^V:=\operatorname{Hom}_{K[G]}(-,V)\colon (K[G]\mathsf{-mod})^{opp}\rightarrow \mathsf{Ab}$ is exact for every $V\in K[G]\mathsf{-mod}$.
Next, verify that the functor $h^V$ is isomorphic to the composition $I\circ M$ of functors $$M:=\operatorname{Hom}_K(-,V)\colon (K[G]\mathsf{-mod})^{opp}\rightarrow K[G] \mathsf{-mod}$$ $$I:=(-)^G\colon K[G]\mathsf{-mod}\rightarrow \mathsf{Ab}$$ for every $V\in K[G]-\mathsf{mod}$. Here, for $W$ a $K[G]$-module, we endow the set of $K$-linear maps $\operatorname{Hom}_K(W,V)$ with the structure of a $K[G]$-module via the diagonal action $g.\phi=g.\phi(g^{-1}.-)$, where $g\in G$ and $\phi\in \operatorname{Hom}_K(W,V).$ The second functor sends a $K[G]$-module to its abelian group of $G$-fixed points, i.e. its $G$-invariants. Both functors are additive. Since every $K$-vector space has a basis, the functor $M$ is even exact.
As the composition of exact functors is exact, Maschke's theorem now follows from the following result.
Proposition. Assume that $G$ is finite and the characteristic of $K$ does not divide the group order $n:=\vert G \vert$. Then the functor $I=(-)^G$ is exact.
Proof. Condider $K$ with the trivial $G$-action. Recall that the functor $I$ is isomorphic to the functor $\operatorname{Hom}_{K[G]}(K,-)$. In particular, the functor $I$ is left exact. Thus, it is exact if and only if its first right derived functor $R^1I\cong \operatorname{Ext}_{K[G]}^1(K,-)\cong\operatorname{Ext}_{\mathbb{Z}[G]}^1(\mathbb{Z},-)$ vanishes on every $K[G]$-module. In other words, $I$ is exact if and only if the first cohomology $H^1(G,V)$ of the group $G$ vanishes for every $K[G]$-module $V$. To see that the cohomology vanishes, consider the $K[G]$-module homomorphism $V\rightarrow V,x\mapsto n\cdot x.$ Since the characteristic of $K$ does not divide $n$, this $K[G]$-module homomorphism is an isomorphism in $K[G]\mathsf{-mod}$ with inverse $V\rightarrow V,x\mapsto 1/n\cdot x.$ (I find this quite illuminating: In Maschke's theorem the assumptions on the characteristic and the group order $n$ are precisely the way they are so that the multiplication by $n$ is invertible.) Consequently, the induced map $m_\ast: H^1(G,V)\rightarrow H^1(G,V)$ is an isomorphism. By the additivity of the cohomology functor $H^1(G,-)$, the map $m_\ast$ is multiplication by $m$. Thus, we have $H^1(G,V)=mH^1(G,V)$. With $mH^1(G,V)=0$, the proposition follows, QED.
For a proof that $mH^1(G,V)=0$ holds, see Corollary 16.4 in A Course in Homological Algebra by P.J. Hilton and U. Stammbach.