Permanently change keyboard layoutudev is the service that manages your devices. The command signals to this service that there's been a change to your input subsystem and that it should re-detect things and reconfigure. Rebooting your system should have the same effect.