You don't say what you did to try to prevent Win 10 from installing the keyboard driver after you had uninstalled it. I've seen suggestions to use Group Policy to do that (but of course, that's not available if you have Win 10 Home).
I've also seen suggestions to install a defective keyboard driver to disable the keyboard.
Both of those suggestions are described here (https://www.lifewire.com/disable-laptop-keyboard-windows-10-4582462), but I'll take you at your word that you're unable to prevent Win 10 from reinstalling the driver and also assume that you've tried the bad driver method with no success.
The simplest solution is to forget about disabling the laptop's keyboard. Just attach an external keyboard -- USB or wireless -- and don't let your fingers anywhere near the built-in keyboard. I assume you already have an external keyboard (or you wouldn't be asking how to disable the built-in one). Unless the defects in the built-in keyboard are causing it to press keys on its own, using an external keyboard ought to be sufficient.
A more extreme solution is to open the laptop and disconnect the keyboard. Depending on the make and model -- which you didn't specify -- this is a task that varies in difficulty. If you provide the make and specific model, someone here can probably find some directions for you to do this on your own (or you could take the laptop to your friendly neighborhood independent computer repair shop). A somewhat more difficult variation, which is also more expensive, would be to replace the built-in keyboard.