How to listen for whether the option key is pressed in the right-click menu?

I am not quite shire what you are asking for. Maybe this is of help: