I assume these were USB keyboards ?
Do the USB ports work with other USB devices?
===================
There is an option to Refresh your PC.
This will not affect files and data.
It will, however, revert your pc to pre 8.1 and this will need to be re-installed.
It will remove recent updates.
It will restore everything to original settings.
This may be worth a try before a total reinstall.