I want to prove that for matrices $A,B \in M_n (\mathbb K)$ where $\mathbb K \in \{\mathbb R, \mathbb C, \mathbb H\}$ if $AB = I$ then $BA = I$.
My proof is really short so I'm not sure it's right:
If $AB = I$ then $(BA)B = B$ and therefore $BA=I$?
I want to prove that for matrices $A,B \in M_n (\mathbb K)$ where $\mathbb K \in \{\mathbb R, \mathbb C, \mathbb H\}$ if $AB = I$ then $BA = I$.
My proof is really short so I'm not sure it's right:
If $AB = I$ then $(BA)B = B$ and therefore $BA=I$?
The implication $(BA)B=B \Rightarrow BA=I$ is a little quick and not always true...
But observe that $$1=\det(BA)= \det(B)\det(A)$$ thus $B$ is invertible and it follows that $$BA= BA(BB^{-1}) = B(AB)B^{-1}=BB^{-1}=I.$$
Consider $$ C = \pmatrix{1 & 0 \\ 0 & 0}, D =\pmatrix{1 & 0 \\ 0 & 0} $$ Here $CD = D$, but $C$ is not the identity. That is, your proof is not clear.
It has already been given in the comments above, but you can find a proof here: If $AB = I$ then $BA = I$
Your proof isn't correct: If in a ring with unit we have $ab=b\iff(a-1)b=0$ then we have not necessarily $a=1$ or $b=0$ unless we work on an integral domain (and of course $\mathcal M_n(\Bbb K)$ isn't an integral domain).
To prove this result notice that (by a classic result) that $AB=I$ imply that $A$ is surjective and $B$ is injective (since $I$ is bijective) and we conclude that $A$ and $B$ are invertible using the rank-nullity theorem.