Goto the URL opera://settings/keyboardShortcuts, scroll down to "Show sidebar", hover over it, click "type a shortcut", and hit F4. Then you can use F4 to toggle it.
You don't have to use F4 though. It's just what the old Presto-based Opera Browser suite (Opera 12) used to toggle its sidebar.