Proof (polynomial ring over a field is a Euclidean domain)
Since $K$ is an integral domain, $\deg(f\cdot g) = \deg(f)+\deg(g)\geq \deg(f)$ for all non-zero $f,g\in K[X]$.
To check if division algorithm works, let $f = \sum_{i=0}^{n} a_i X^i$, $a_n\neq 0$ have degree $n$ and $g=\sum_{i=0}^{m} b_i X^i$, $b_m\neq 0$ have degree $m$. We will induct on $n$.
If $n<m$, then setting $q=0$ and $s=f$ works.
If $n\geq m$, set $$ \begin{align*} h = f - a_n b_m\inv X^{n-m} g. \end{align*} $$ Note $h=0$ or $\deg(h) < n$. If $n=m$, we are done with $q = a_nb_m\inv X^{n-m}$ and $r=h$. Otherwise, by induction hypothesis, we can write $$ \begin{align*} h = \tilde q g + \tilde r \end{align*} $$ where $\tilde q, \tilde r\in K[X]$ with $\tilde r=0$ or $\deg(\tilde r)<m$. Then $$ \begin{align*} f = (\tilde q + a_n b_m\inv X^{n-m}) g + \tilde r \end{align*} $$ and we are done with $q = \tilde q + a_n b_m\inv X^{n-m}$ and $r=\tilde r$.