I'm using Ubuntu 18.04 on a laptop with a Swiss layout. When I plug in an external keyboard with a US layout and switch the Input Source to English (US), it doesn't seem to work as expected.
My keyboard is most definitely in US English QWERTY layout, as can be seen here: https://keyshorts.com/blogs/blog/44712961-how-to-identify-laptop-keyboard-localization
In the Ubuntu Settings under Language and Region / Input Sources, I can also show the keyboard layout selected and it matches my keyboard. However, when I press buttons, the output doesn't match what I'm pressing. For example, the 3/# key gives a £ instead when I shift click it, and the @ is on the '/" key instead. This seems to resemble a UK keyboard.
Is this a problem with my keyboard or else how could I fix this?