Consider the polynomial given by:
$$P(x) = 2x^4 - 3x^3 + x^2 - 5x + k$$
If the polynomial has a factor of $$x + 1$$, what is the value of the constant $$k$$?