@gcjr
I compiled and uploaded your sketch of Post-5 unto UNO but did not respond to the activation of pinBut of Fig-1. (When pinBut is pressed and kept pressed for more than 1-sec, ledPin still reamins turned off. The pinLed should turn on as per description of Post-1.)

Figure-1: