Keyboard and mouse can be disabled in windows to favor other input devices like Touch screen in some scenarios. Ex: In a railway inquiry kiosk touch screen is available and to prevent an unauthorized person from connecting keyboard/mouse it can be disabled. Find steps below to disable them.
  1. Open Registry
  2. Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services
  3. Move to key ‘Kbdclass’ for keyboard & ‘Mouclass’ for Mouse
  4. Set the value of “Start” to 4 to disable the keyboard / Mouse
  5. Close Registry
  6. Reboot
Note: Don’t Disable both at a time because we’ll lose 2 main inputs & we need to Reinstall OS again if no other input like touch is available.