Razer Keyboard Extended "M" (Macro) Keys and "This device key" Trigger

You need to download a razer keyboard driver to customize macro keys.

Or karabiner elements

Thanks, su_xin. Razer stopped supporting Macs.