How to add a physical keyboard layout
It's quite an easy task. See the source of the InputDevices system package. Or get the ready to use Polish programmers external keyboard layout plugin from there: https://sites.google.com/site/polishhardwarekbd/

You'll find the app source there as well. Regards.