I have a UK qwerty keyboard, but Ubuntu doesn't seem to recognise the layout correctly. For example, the @ and " are switched round from how they should be.

The mysterious thing is that the keyboard layout in System Settings is absolutely correct. But in any application (chromium, terminal, nautilus) the keys come out wrong.

Any ideas?

Thanks very much