Most of the New Keyboard handling code is in the "plugin/kbd_unicode" subdirectory.