How long are you waiting before trying the keyboard? Might simply be a case of the system reloading the drivers for them in the background.
2 things to try first:
Get yourself into Safe Mode and try using the keyboard and touchpad there.
Plug in an external keyboard, give it a minute or two to find the device, and then try typing from it.