when your keyboard stops working under gnome in fedora with no apparent reason (mouse still responds), delete the file ~/.gconf/desktop/gnome/accessibility/keyboard/%gconf.xml and restart gnome. i don’t know what’s the reason of this happening, but google helped me to find a working solution from bugzilla.