Is it possible to create a switch sensitive to Shift/Alt/Ctrl keys?

Can’t find any info in the developer resources whether a switch can be Shift/Alt/Ctrl -sensitive and behave differently depending on which key is held during clicking that switch. No chance?