Disabling a laptop keyboard in place of a USB keyboard?

Solution 1:

You could create 2 batch files for enabling/disabling your keyboard using its device id with the command line tool devcon.

From Microsoft Support website:

The DevCon utility is a command-line utility that acts as an alternative to Device Manager. Using DevCon, you can enable, disable, restart, update, remove, and query individual devices or groups of devices

Then you could have shortcuts to these files on your desktop or on any other accessible location of your preference.