Three Finger Click to Press Modifier Keys (And release when click done)

I want to use the Magic Mouse to create a key-down and key-up event. So, for example, with a 3-finger click, I want to press the command and option keys, but as soon as the mouse click depresses, I want those keys to key up.

Is this possible?

Thanks! Craig