Most people assume the M2 key is a standard key found on every keyboard, but it is not: on the vast majority of keyboards there is no key labeled M2 at all. The M2 you are seeing is a special key created by a specific program, a macro key on a gaming keyboard, or a label on a laptop's secondary function row, and its meaning depends entirely on where it appears. The first step is to work out which of those three situations you are in, because each one behaves differently.
What the M2 Label Means
The letter M followed by a number is a naming convention for a programmable key, not a fixed part of the standard keyboard layout. Standard keyboards carry the letters, digits, punctuation, function keys, modifiers, arrows and a navigation cluster, and none of those is called M2. When a key reads M2, something has assigned that name to it.
There are three common sources. The first is macro software bundled with a keyboard or mouse, which lets you record a sequence of keystrokes and bind it to a spare key; the software often labels these M1, M2, M3 and so on. The second is a dedicated macro column on a gaming keyboard, where physical keys down the left edge are marked M1 through M5 or similar. The third is a laptop or compact keyboard where a key has a second printed label, sometimes in a different color, that is triggered with the Fn key.
A fourth possibility catches people out: a keycap has been swapped or replaced, so the legend says M2 but the switch underneath sends whatever the keyboard's firmware says it sends. If the key does nothing useful, check whether the cap matches its position before assuming a software problem.
Finding Out What M2 Does
Press it on its own and watch what happens. A macro key usually types a phrase, opens a program, or fires a shortcut, so the effect is visible immediately. A secondary function key does nothing on its own and only works while Fn is held. A key that produces no response at all is either unassigned or disabled in software.
If nothing happens, open the keyboard or mouse software that came with the device and look for a macro, key assignment or remapping screen. The M2 entry there will show what it is bound to, and you can clear it or change it. Labels in that software differ by brand and version, so look for words like Macro, Key Assignment, Remap or Profile rather than expecting an exact menu path.
On a laptop, hold Fn and press the key, then try the key alone. If one of those produces a brightness, volume, media or wireless toggle, you have found a secondary function. The manual or the manufacturer's support pages list the exact combinations for your model, and that is the only reliable source for a machine-specific mapping.
Signs You Are Looking at a Macro Key
The key sits outside the normal grid, often in a column at the far left or above the number row. Its legend may be printed in a different style from the rest of the keys. Pressing it types text you did not type, or launches something. The device's software shows a list of profiles. Any two of these together point strongly to a programmable key rather than a standard one.
Why M2 Is Not a Standard Key
The standard keyboard layout is defined by the keys it must contain for typing and shortcuts to work the same way everywhere: letters, digits, modifiers, function keys, arrows and navigation keys. Manufacturers are free to add extra keys, and they do, but those additions are proprietary. That is why a keyboard can carry M1 through M5 without any operating system needing to know what they mean.
The M numbering itself is just a convention. It stands for macro, and the number distinguishes one programmable key from the next. Nothing about the label tells you what the key is set to, which is why the same M2 position on two keyboards from the same maker can do completely different things depending on the profile loaded.
Remapping or Disabling M2
If M2 is firing something unwanted, the fix is in the software that created it. Open the device's configuration tool, find the profile that is active, locate the M2 assignment and either clear it, set it to a harmless key, or delete the macro it runs. Save the profile to the device if the software offers that option, because some keyboards store assignments in onboard memory and revert if you only change them on the computer.
If no software is installed, the assignment may still live in the keyboard's firmware. Installing the manufacturer's configuration tool is the usual way to see and change it. For a laptop secondary function, the setting is normally in the system's function key behavior option in the BIOS or the manufacturer's utility, where you can choose whether the top row acts as function keys or as media keys by default.
When you remap, keep one principle in mind: assign M2 to something you cannot trigger by accident. A key that types a long phrase or runs a script is easy to hit while reaching for Escape or Tab, and a misfire in the middle of typing is more disruptive than the convenience is worth. Test the new assignment in a plain text field before relying on it.
M2 on Laptops and Compact Boards
On laptops, a printed M2 usually marks a secondary function reached with Fn, and the primary action is whatever the main legend says. The Fn key is typically bottom-left, next to Ctrl, though its position varies. Hold Fn and tap the key to trigger the secondary action; release and tap to get the primary one.
Some machines let you lock the behavior so the secondary functions work without Fn. That toggle is usually in the manufacturer's system utility or in the firmware setup screen, and the wording differs by maker. If you cannot find it, the support documentation for your exact model is the place to look, since the same key can be wired differently across product lines.
Compact keyboards often use a function layer to squeeze navigation and media keys onto fewer physical keys. On those, a key marked M2 might be a media control, a macro, or a layer switch, and the only way to know is to test it with and without the layer modifier held.
Checking Before You Rely on It
Before you build a habit around M2, confirm three things. First, that the assignment survives a restart, which tells you whether it is stored onboard or only in the running software. Second, that it behaves the same in the programs you actually use, since some macros only fire in the foreground window. Third, that pressing it does not conflict with a shortcut in an application you use daily.
If the key still does nothing after checking the software and trying Fn, the switch or the membrane under that key may have failed. Test by assigning a simple letter to the same key in the configuration tool: if the letter does not appear either, the problem is hardware, not mapping, and the keyboard needs service or replacement.