Given the function \( f(x) = x^2 + kx + 4 \), find the value of \( k \) such that the vertex of the parabola defined by this function is on the y-axis. Let's think step by step and output the final answer within \boxed{}.
user