How to turn a light off?

You just need a do once sir with a reset in the released. Please note that the event for pressed is fired continuously while pressed so you are turning it on and off rapidly as you press it.