I've had my keyboard stop working at random times, too. Random chance, I noticed that the PrintScreen button on my keyboard switched from ttyy8 to tty1, iterating all the way through to ttys8 again each time I hit it. But once I hit it the first time, the keyboard started working again.
I have...