Debian special keyboard feature triggered

When using TeamViewer on Debian to control another computer, the keyboard layout feature "Both Shift keys together activate Caps Lock" is triggered whenever I press only one Shift key. Debian does not think it's active, so I have to activate it first to be able to deactivate it. Other programs don't do this (except for Minecraft 1.12.2 for some reason).