MacBook Pro: Keyboard layout mismatch I just received my repackaged MacBook Pro (Retina, 13 inches, end 2012) and I have a problem with my keyboard. The keyboard layout is different from the one I had before, and I can't find the right one in the input types of the system!

So what's problematic: I have the @# key above the Tab key, but when I press it, I get &lt;&gt;. Then, I have the &lt;&gt; key below the delete key (which is weird I've never seen that layout before) and when I press it, I get £.

Otherwise the keys seem to work fine.

I have an AZERTY keyboard and I'm running macOS High Sierra 10.13.6 (17G65). The language associated with it isn't really important as long as when I press a key, it actually gives me the character printed on it!

So my question is: Is there anyway to fix that? Somewhere to download another keyboard layout? Does apple have some hidden layout somewhere? Do I have to write my own layout and if so how?

I've looked at all the languages available in the system right now and searched for hours on Google but I didn't find anything.

EDIT
I usually type in french. Here's a photo of my keyboard :
Only Belgian and French Apple layouts are AZERTY.  If you have either the French or Belgian input source active, they will give you @# above Tab.  But &lt;> will be next to the left shift before W.  Your picture indicates this latter key is missing, so it is not a proper French/Belgian keyboard, but some kind of mishmash, with keys from an ISO keyboard grafted onto an ANSI keyboard.

The only keyboard with &lt;> near Delete is Turkish, which is different everywhere else, and also has the extra key, 

To get output to match your keys you will need a custom layout made with Ukelele or Karabiner.

Here is one I made with Ukelele which may work.  You put the French Mod.keylayout file in Library/Keyboard Layouts and then go to system preferences/keyboard/input sources and use the plus and add buttons to activate (it will be in the Others category).