To switch to another main tab by mouse
Simply click the main tab in the ribbon.
To cycle between open main tabs by keys
Assign the following scripts to an unused combination of keys to switch between open main tabs:
NextMainTab
PreviousMainTab
The keys will function also when you have some content open. You need to use the keys combination that is not used for other operations.