Fix key unbinding for msg history