Do you by any chance have a getty running on the console? If you do that, the getty and the X server will compete for input events, which eventually results in the X server's keyboard state becoming corrupt, at which point the keyboard "locks up." _MelloN_