derive kbd input from the current locale (set in /etc/gdm/locale.conf). Adapted from FreeBSD BZ #235009