I was able to cobble something together
My code in #4 did exactly what you asked. Press a button; while it's held, display a counter or timer or whatever you want to call it from 0 in 1/100 of a second; stop doing that when button released; start at 0 again next time round.
Unless you mean you needed to incorporate that functionality into a bigger scheme of things.