Use Volume UP Button as Trigger

I have a custom board on which the “force recovery” button works after starting Ubuntu as a “volume up” function.
Is there a possibility to execute a script file on the system when pressing the button? I’d like to use the system without mouse and keyboard and just execute a trigger pulse with this button.

Thank you and best regards Thomas


What I understand is that this is a gpio key and you are able to see the trigger event with

sudo -s
cat /dev/input/event3
#press key

That’s what I’ve been looking for, thank you for your help.

cya Thomas