I don't see any PC details. Maybe it's something motherboard or other but not much to work with here. Tell more.
I've seen some similar problems, but haven't seen any discussion on what ails my win10 installation. This happened with win 8 also. I can't solve it because I haven't seen any discussion of it.
While I've seen other people with dead keyboard/mice at logon, mine is just the keyboard, not the mouse, and it's both RANDOM and relatively rare.
So I can go a 1 to 3 weeks with no problem, then all of a sudden you try to logon and can't because the keyboard can't communicate with the computer. It is not dead because the keyboard lights are on. Doesn't matter how long you wait. It is not the cable connection. The only thing that fixes it is rebooting, which always solves the problem. Then I am good for another 1 to 3 weeks. It's not a big handicap, since it is sporadic, infrequent, and not that big a deal in the overall scheme of things. Just annoying and aggravating when it keeps going on and on and I never see anyone else with this problem.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic