I have Xperia pro. On stock rom smart keyboard works ok. I tried a custom rom and now smart keyboard wants to use english layout on hardware keyboard.
I dug around a little and changed keyprint.xml according to these instructions. This fixed the xperia keyboard but NOT smart keyboard pro.
The problem is probably that the author of the rom mixed firmware of ARC S with Xperia pro which is very similar otherwise but no hardware keyboard.
Do you know where is the keyboard "stuff" defined that you use to look up the hardware keyboard layout?