$P$ has a polynomial inverse implies that the Jacobian of $P$ is a constant function. There is a conjecture known as the Jacobian conjecture which says that if the characteristic of $K$ is zero, $P$ has a polynomial inverse if and only if its Jacobian is a non zero constant. https://en.wikipedia.org/wiki/Jacobian_conjecture