Serial Print makes code work. Why?

I don’t know that library. Is that just dealing or do the buttons fire events when released?

You could envision to Modify the code to make all the buttons untouched when you get a hit, then check if one is touched.and press that one