Consider the polynomial function given by:
$$P(x) = 2x^3 - 4x^2 + kx + 8$$
where $k$ is a constant. If the polynomial has a root at $x = 1$, what is the value of $k$?