3PDT Switch Coded to act as Momentary Button?

The main problem is that obviously 3PDT switches are either off or on and was wondering is there a way to code so it acts as a momentary push button?

So, you want to do something when the switch BECOMES on, not IS on? Look at the state change detection example.