Mapping does not work with some characters in KeyRemap4Macbook
I found the cause of the problem. I have Turkish keyboard layout installed. The place of character comma corresponds to the place of character B in Turkish keyboard layout. The KeyCode definitions requires the character in the US keyboard layout.