Once upon a time, a long long time ago, there was xorg.
Xorg had this bug: instead of switching keyboard layout when the key combination is released, thus allowing the layout switching combination to be used as part of other key combinations, xorg switched layouts upon key press.
This meant that, for example, it your layout switching was done with alt+shift you couldn't use alt+shift+tab to flip backwards between open windows.