How to use push button to toggle Led in raspberry pi?

Near as I can tell, Node-Red's ui_button only "triggers" on release - as I discovered when working on this topic...

However there are some solutions - such as creating your own button ...