Let $R$ be a commutative local artinian ring with identity. Denote its maximal ideal by $\mathfrak{m}$ and let $\mathbb{k}$ denote the residue field $\mathbb{k}=R/\mathfrak{m}$. Assume also that there is a ring map $\mathbb{k} \rightarrow R$ such that the composition with the usual surjection $R \rightarrow \mathbb{k}$ is an isomorphism of $\mathbb{k}$.
Show that if $M$ is an $R$-module of finite length then the dimension of $M$ as a $\mathbb{k}$-vector space is finite and that it is equal to the length of $M$.
My thoughts: I am completely lost in this in that I have a method that seems to "work" but does not use many of the above properties.
Since $M$ is a $\mathbb{k}$-vector space, it has a basis $\{m_i\}_{i \in \mathcal{I}}$ and I can write $$ M=\langle m_1 \rangle \oplus \langle m_2 \rangle \oplus \cdots \oplus \langle m_n \rangle \oplus \cdots $$ $\mathfrak{m}$ being a maximal ideal of course forces $\mathbb{k}$ to be a field so that is where the commutativity of $R$ comes in. I have used the maximality of $\mathfrak{m}$ but not the local property of $R$. I do not see how to use the given maps at all except that I feel that I should use them to force $M$ to be a finite direct sum. I know that $\langle m_i \rangle=\mathbb{k}m_i \cong \mathbb{k}$ as a vector space and these should be simple since they are 1-dimensional vector spaces. Once I know that $M$ is a finite direct sum, say of dimension $n$, that $M$ is then semisimple with $n$ terms in the summand of simple modules for $M$. But then $M$ being semisimple module forces $M$ to be isomorphic to the direct sum of the factors in any composition series so that I would be done. It is the middle part of this proof that I am unsure of how to approach.
Any ideas, hints, or the like on how to show this?