How to interface a physical push button with display

I’m trying to change screen using a push button switch by using a digital read function with my ESP32 with a 3.5" TFT display I also defined the event setting on square line studio event options I tried to change the screen if the push button was pressed but the screen change is not happening Square Line Studio which transacts the event.h file generate will have to make any changes?