Zdeno Bielik

Hi,
is it possible save current keyboard layout, set new needed and then back previosly saved?
Bar code is correctly scanend only when layout is set to US and when user forgot change it from Slovak or Czech,
then trash/stuff is scanned and must delete it, change layout and re-scan and after scanning againg set national layout...
I want automatically set it when oGet get input focus and change back when will lost focus.
Thanks
Zdeno