Suppose you have a secret function that you want to activate by double-clicking a Text object while holding down the Shift, Ctrl, and right mouse button:

function someText_onLeftDblClick( flags, col, row )

if bitset( flags, 1 ) and bitset( flags, 2 ) and bitset( flags, 3 ) 

// Do secret function 

endif