Reload current keyboard layout after making changes

Solution 1:

From https://unix.stackexchange.com/a/385725/91283 (originally from https://wiki.debian.org/Keyboard):

sudo udevadm trigger --subsystem-match=input --action=change

Worked for me.