Activating a window (tabbed, floating, or docked) via mouse, shortcut key, or calling setfrontwindow, puts the focus and keyboard focus into that window’s content. Exceptions to this include the standalone Layers or within the Explorer window. For keyboard navigation of the Layers window see Layers Window Shortcuts.
Tab and arrows are not used to navigate between windows or on the ribbon. See Window Shortcuts.