Windows on a tablet form factor allow consumers to change the action of three buttons on the tablet (Power button, Volume Up, and Volume down). You will need to navigate to Control Panel > Tablet ...
If you want to disable all the hardware buttons on your Windows 11/10 Tablet PC then the Local Group Policy Editor and Registry Editor can help you turn off or disable all the OEM-defined buttons.