The &shortcut:CloseActiveTab; key combination closes the currently opened tab in the Message Window, regardless whether the focus is in there or not.