This is code from st, we don't use their button implementation. The value property for our button events is the button number. In your event handler you have if button number starts with, which won't ever match our button value.
You should see the button number from the event in live logging when you press the button.
If you don't then the button isnt actually sending what it should be. Which button device and driver are you using?