Keyboard no longer working in KDE

Most of the time this is a session dependent problem which happen after pressing the shift key several seconds. Try to delete ~/.kde/share/config/kaccessrc to fix it.