Ovrride hardware buttons

hello everyone
i’m trying to prevent some user inputs with a “lock” function
i explain my page and my idea

in this page i select which video i want to show

in this page i can tap the video thumbnail to play it on a external device

my idea is to do something to “lock” the phone, like a buttons combination (volume up + volume down). this disable the “pinch 5 to exit”
the phone will be placed in a frame and users can only tap the screen for p laying the selected video

then, when the combo buttons are pressed again, the lock will disable and i can be able to exit the page

how can i do it?
i searched and found only methods and plugin to override the default BackButton

thanks for yourr help :slight_smile: