Specify a keyboard type on Mac
When you connect a keyboard that is not immediately recognized, Keyboard Setup Assistant automatically opens so that you can specify the keyboard type. macOS recognizes three keyboard types: ANSI, JIS (Japan), and ISO (Europe). The ANSI keyboard is a standard 101-key layout widely used in North America and many other parts of the world.
If you’re having trouble with your keyboard, you may need to specify the type manually. You can use Keyboard preferences to open Keyboard Setup Assistant and specify the keyboard type.
On your Mac, choose Apple menu > System Preferences, then click Keyboard.
Click Change Keyboard Type, then follow the onscreen instructions.