Keyboard shortcut to alternate between sidebar and outline?

I’d really like to be able to have a quick keystroke sequence to change from the outline back to the Sections view. When I enter a new Section title, I get popped over into the Outline, where I can enter the section heading. But I’d like to be able to create a new Section with a shortcut, not having to click back in the sidebar window. Am I just missing something? Or is it scriptable (I’ve not really written scripts)? Or could I easily write a plugin for it?