Yeah but the OS controls what it does with the signal.
On macOS if CapsLock is down hitting Shift does nothing. Not sure what happens on Linux; I thought I remembered it also not lower casing text with CapsLock and Shift both active but I could be wrong.