Handle keyboard layout changes