When $k \neq 0:$
A column vector that is not sent to zero by
$$
\left(
\begin{array}{cc}
0 & k \\
0 & 0
\end{array}
\right)
$$
is
$$
\left(
\begin{array}{c}
0 \\
1
\end{array}
\right),
$$
and
$$
\left(
\begin{array}{cc}
0 & k \\
0 & 0
\end{array}
\right)
\left(
\begin{array}{c}
0 \\
1
\end{array}
\right) =
\left(
\begin{array}{c}
k \\
0
\end{array}
\right)
$$
Putting the columns in reverse order, we get
$$
P =
\left(
\begin{array}{cc}
k & 0 \\
0 & 1
\end{array}
\right)
$$
with
$$
P^{-1} =
\left(
\begin{array}{cc}
\frac{1}{k} & 0 \\
0 & 1
\end{array}
\right)
$$
after which
$$
\left(
\begin{array}{cc}
\frac{1}{k} & 0 \\
0 & 1
\end{array}
\right)
\left(
\begin{array}{cc}
7 & k \\
0 & 7
\end{array}
\right)
\left(
\begin{array}{cc}
k & 0 \\
0 & 1
\end{array}
\right) =
\left(
\begin{array}{cc}
7 & 1 \\
0 & 7
\end{array}
\right)
$$
The point being that, as soon as $k \neq 0,$ the specific value of $k$ is not that important. The last matrix is the Jordan form of your original.