How can I switch between keyboard layouts by pressing a keyboard shortcut like on Windows?
Go to System Settings > Keyboard Layout > Layout > Options > Key(s) to change layout.
You should be able to select one or more key combinations to change your keyboard layout.
On newer Ubuntu versions the default shortcut is super+space.
The same. If don't work, choose keyboard layouts and then preferences and keys to switch the layout.