Hello Sinazo, welcome to the Microsoft community, my name is Luiz Cruz, an independent consultant and I would be happy to help you.
I understand that you accidentally uninstalled the p2 keyboard, to reinstall please follow the steps below:
Did you uninstall the driver through Device Manager? Or have you disabled the keyboard?
Initially I recommend that you restart the pc and check if the keyboard works again.
If it doesn't work you can try to restore the pc.
Restore the system.
If the solutions above do not solve the problem, you can perform a System Restore to restore your computer back to a moment before the behavior starts.
Press Windows + R and type RStrui;
In system restore click on Next;
In the next window, check the option for other restore points, select a date before the event and click next;
Confirm the restoration date and click finish.
I hope I helped, even more!