Set the right layout for each phisical keyboard you have
This code is based on the work published here: http://www.codeproject.com/Articles/20994/Using-multiple-keyboards-with-different-layouts-on