Stefan, the "normal" way for the keytable script to exit is trough the "exit 0" in the setkeyboard function. After reaching that point execution does not go on and so the "localectl set-x11-keymap" you added is never executed (well, not if "keytable" executes normally).