How to prevent lock screen (disable standby button)

I’m using Processing 3.5.4 in Android mode.
I want the screen always on while my app is running, i.e. disable the phone power button to avoid accidentally locking the screen.
How can I do that?