Modes and bg are recovering from history, keyboard