You will need to navigate to Control Panel > Tablet PC Settings > Set tablet ... adapt as per the device. However, Windows 10 does come with tablet mode settings one can use to change.
How to turn off tablet mode on Windows 10 1. Click the Start button — the Windows icon in the bottom left corner of your screen. 2. Open Settings by clicking the gear icon in the Start menu ...
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.