If \( y = A \sin 2x + B \cos 2x \) and \[ \frac{d^2y}{dx^2} - k y = 0, \text{ find the value of } k. \]