If you want to disable your laptop keyboard in Windows 10, there are two safe methods: disable it in Device Manager or permanently uninstall it. Another technique is to force the keyboard to use a driver that it can't use, thus stopping it from working.
Use Device Manager to Disable the Keyboard
1. Open Device Manager. One of the easiest ways to do this is to open the Run dialog box (press Windows key+R) and enter the devmgmt.msc command. Or, right-click the Start button in Windows 10 and choose the tool from there.
2. Expand the Keyboards section to see a list of devices.
3. Right-click Standard PS/2 Keyboard and choose Disable device. If you don't see this option, try a different method below.
4. Confirm with Yes. If the keyboard isn't disabled right away, restart the computer.
Stop the Keyboard From Installing With Group Policy Editor
1. Press Windows key+X and then select Device Manager.
2. Expand Keyboards.
3. Right-click Standard PS/2 Keyboard and choose Properties.
4. Go to the Details tab and change the Property drop-down option to Hardware Ids.
5. Open the Run dialog box (Windows key+R) and enter the gpedit.msc command.
6. Under the Computer Configuration heading, navigate to Administrative Templates > System > Device Installation > Device Installation Restrictions.
7. Right-click Prevent installation of devices that match any of these device instance IDs, and select Edit.
8. Select Enabled from the left side, and then choose Show from the area below it.
9. Return to Device Manager as you left it in Step 4. Right-click the first entry in that list and choose Copy.
10. Go back to the policy you opened in Step 8, double-click the space under Value, and then paste the copied ID into that box. To past the ID, either press Ctrl+V or right-click and choose Paste.
11. Choose OK on that screen, and then OK on the policy screen.
12. Find the device again in Device Manager, right-click it, and choose Uninstall device. Accept any prompts that might show up.
13. Restart the computer to disable the laptop keyboard permanently.
Hope I solved your problem. Thanks