Backslash and pipe on a US keyboard set as UK

Backslash and pipe on a US keyboard set as UK

This is for anyone in the UK, stuck with a US layout keyboard!!!

Recently I bought a cheap mechanical keyboard from the US, even though the layout US-UK is fairly similar, some keys are in a different position, like the # and some others are missing (¦|).

Today I needed to type some code and I completely panicked when I couldn't find the pipe and backslash, after some tries I recalled that when I was in Italy, the IT layout allows you to type curly brackets using ALTGR+[ ... my current keyboard does not have ALTGR but I just tried using the LEFT ALT + the backslash button and it worked !!!