Remember keyboard layout when switching between applications