Modifier Key for Script Function

If you have a script function fired by a button that uses function OnClick(clickData)to initially start doing things is there a way to give the button different functionality with a modifier key? I mean if I hold Ctrl or Shift while clicking the button it will do different tasks. Thanks

clickData.func.qualifiers tells you which keys were held down when the function was launched; your script can use that to modify its behaviour.

That is exactly what I was looking for. Super, as usual, thanks!