I was using VMware and my keyboard went to Horkytown. My recipe for resetting the keyboard (at least on Fedora 10):
-
egrep -i 'rules|layout|model' /var/log/Xorg.0.logto find out your rules, layout, and model for your keyboard. -
setxkbmap -rules xorg -layout us -model pc105substituting the values from step 1 where appropriate.
If you have to SSH in and do this, like I did, prepend DISPLAY=:0 to setkbmap of course.