This is called when a canvas that is showing this buffer has it's focus unset. There will be at most one buffer that has the focus at any time. See also on-set-focus
This method removes the buffer's keymap from the buffer's frame's keymap, if the buffer is in a frame. See get-keymap.