Use a keyboard lock utility or hotkey tool
Disable the keyboard in Device Manager
Use BIOS or UEFI settings if available
Enable a child lock or kiosk mode
Use a screen lock with keyboard input disabled by policy
Connect an external keyboard and disable the built-in one
Use accessibility settings or filter keys to reduce input
Set a password-protected lock screen when stepping away
