After window registry edit, keyboard start malfunctioning.

What could be wrong with my system keyboard after editing the window registry? I recently disable cap lock of my laptop keyboard using window registry, but after the change, the other buttons on the keyboard is responding to other keys. For example, if I press ‘a’ what I see is ‘z’, in short my keyboard is in mess. I’ve test with external keyboard, but the problem won’t go away. How do I fix it?
