Hey there! @yappy2017, Thanks for stopping by the HP Support Forums!
I understand you have keyboard issues with your PC.
Don't worry I'll try to help you out.
Did you make any software or hardware changes on your PC?
Have you tried checking with an external keyboard does the issue persist?
Please provide the product number of your laptop to assist you better.
As you mentioned when you connect the base of your keyboard to a different X2 PC the keyboard works.
Try few steps recommended below.
Turn off the computer and then restart it.
Press the Esc key repeatedly to see if a startup menu opens.
If a setup menu does not open, the integrated keyboard hardware is not working. The integrated keyboard in the notebook should be serviced or replaced. To continue using the notebook, connect a USB-wired keyboard to a USB port and restart the computer.
If a setup menu opens, use the arrow keys to navigate the menus. If these keys are working in the startup menu, but then fail when Windows loads, the problems might be related to the keyboard software.
Restart the computer.
In Device Manager, uninstall and reinstall the keyboard software:
In Windows, search for and open Device Manager.
Click View and select Show Hidden Devices.
Click the arrow next to Keyboards, right-click the keyboard device name, then select Uninstall to remove the device from Windows.
Continue removing device names in the Keyboards category until all device names have been uninstalled.
Restart the notebook. Right-click Start (), select Shut down or sign out, then select Restart.
Wait for the computer to restart and open Windows.
If the issue still persists after trying out the steps. It could be an issue with the connector on the keyboard base or tablet could have gone faulty.