Moshinsky's shutter problem: an initial-value problem for the Klein–Gordon equation