My Macbook Pro's keyboard is malfunctioning and both its shift keys are pressing erratically. Other than that, it is fine.
In Macos 10.11, I solved that problem by using karabiner.
In Linux, Xmodmap didn't worK. Is there some command on setxkbmap that would work?