You can indeed use the canonical basis fruitfully here:
Let $E_{ij}$ that has $1$ in the $(i, j)$ entry and $0$ elsewhere. Then, for $i \leq k \leq j$ but $i < j$ we have $E_{ik} E_{kj} = E_{ij}$ but $E_{kj} E_{ik} = 0$, and so for every element $E_{ij}$ with $i \neq j$ we have
$$f(E_{ij}) = f(E_{ik} E_{kj}) = f(E_{kj} E_{ik}) = f(0) = 0.$$
What can we conclude from this?
Spolier/additional hint:
Thus, $f$ is a linear functional on the diagonal elements of $\mathcal{M}_n(F)$. A similar argument shows that $f(E_{ii}) = f(E_{jj})$ for all $i, j$, and so the normalization condition $f({\bf I}) = n$ forces the functional to be the trace.
Alternate solution using a fact about the Lie algebra $\mathfrak{gl}(n, F)$.
If you know a little about the Lie algebra $\mathfrak{gl}(n, F) \cong \mathcal{M}_n(F)$ we can proceed even more quickly. For any $A, B \in \mathcal{M}_n(F)$, we have
$$f([A, B]) = f(AB - BA) = f(AB) - f(BA) = 0.$$ But, the derived Lie algebra of $\mathcal{M}_n(F)$, that is, the Lie subalgebra of all elements that can be written as the bracket of two elements of $\mathcal{M}_n(F)$ is $\mathfrak{sl}(n, F)$, and so, $f(A) = 0$ for any tracefree element $A \in \mathcal{M}_n(F)$. Thus, $f$ depends only on the trace of the argument, and hence we may think of it as a linear map $F \to F$. But the space of such maps is $1$-dimensional, and the trace is such a map (and nonzero), so $f$ must be a multiple of the trace operator. Then, the condition $f({\bf I}) = n$ forces it again to be the trace itself.