Can I send a momentary pulse as a switch is toggled to off?

It sounds plausible enough to do in code. I assume that the switch isn't wired to the LED so you can set it independently.