A proof by induction (on the dimension $n$ of the vector-space $X\simeq K^n$ or $\mathbb{C}^n$).
The basis step, $n=1$, is trivial.
Suppose we have proceeded up to and including dimension $n$ and suppose $X$ is $(n+1)$-dimensional and $T:\DeclareMathOperator\End{End}\End(X) \to \End(X)$ preserves the determinant.
$T$ preserves rank. We are 'allowed' to suitably redefine $T_1(.) := U_1 *T(.) *V_1$, $\det(U_1 *V_1)=1$, after which we may assume that $T_1$ fixes $\DeclareMathOperator\diag{diag}\diag(0,\dotsc,0,1)$, i.e. the projector matrix with a single 1-entry in the bottom right corner. (We will maintain the basis $\{x_1,\ldots,x_{n+1}\}$ which is implicitly used in this matrix representation from now on)
Let $W=\text{span}(x_1,\ldots,x_n)\subseteq X$, $\pi:X\to W: c_1x_1+\ldots c_nx_n+c_{n+1}x_{n+1}\mapsto c_1x_1+\ldots c_nx_n$ and $i: W \to X: w \mapsto w$. Let $\tilde{T}:\End(W) \to \End(W): A \mapsto \pi \circ T_1(A\oplus[0]) \circ i$. Using the Laplace expansion for the determinant on the $n+1$'th row or column, and using the fact that $T_1$ sends singular matrices to singular matrices, we see that $\forall A \in \End(W)$ $$\det(A) = \det(A\oplus[1])=\det(T_1(A\oplus[1]))=\det(\tilde{T}(A)).$$ So according to the induction hypothesis there exist $U_2$, $V_2$ with $\det(U_2*V_2)=1$ s.t. $\tilde{T}(.) \equiv U_2 *(.)*V_2$ or $\tilde{T}(.) \equiv U_2 *(.)^T*V_2$. By composing $T$ with the transpose, we may assume from now on that the former scenario is the case.
It is now easy to check (using only the property that $T_1$ preserves rank and by 'testing' $T_2$ on matrices with a single non-zero entry in the final row and a single non-zero entry in the final column) that for a suitable $z\in \mathbb{C}$, $$T_2(.):=(U_2^{-1}\oplus [z]) *T_1(.)*(V_2^{-1}\oplus [z^{-1}])$$ is the identity map on $\End(X)$.