A While ago, a customer of ours complained about the keyboard layout not working correctly in a KVM/Qemu guest when connecting with the virt-manager console view. And so... I started investigating.
In KVM/Qemu there's a configuration option which allows you to set the keyboard layout (virsh edit virtual-guest-name):
<graphics type='vnc' port='5902' autoport='no' listen='0.0.0.0' keymap='en-us'/>
The customer was using an azerty(fr-be) keyboard layout so I decided to correct the value in this configuration: