How do I get my windows (UK Layout) keyboard to work on Mac?
To change the modifier keys, go to System Preferences → Keyboard → Keyboard and choose Modifier Keys….


To map the keys to the correct places, go to System Preferences → Keyboard → Input Sources, click the + and choose British PC.
To ensure that your keyboard is identified correctly, go to System Preferences → Keyboard → Change Keyboard Type and follow the instructions to allow OS X to identify the keyboard.