If your keyboard has a broken or missing key, working on it can be challenging. In general, regardless of whether you use a laptop or an external keyboard, it’s plausible that it could run into such keyboard problems over time.
While there are several ways to fix a broken keyboard, the simplest (and beginner-friendly) method is to blow away the dust or debris entrenched in the keyboard activity.
However, there are instances when this doesn’t work. An alternative solution at such times is to remap the broken key to another key on your keyboard.
Remapping a key is a fail-safe solution to fixing a broken keyboard. It involves assigning the value of one key to another, thereby enabling the corresponding character to appear when pressing the other.
Now, depending on your computer’s operating system, there are various key mapping programs, each promising to provide a slightly different set of features while retaining the core functionality. We’ll go over these programs for all three major computer operating systems one-by-one.
Key-remapping on Linux is possible through both native utilities and third-party software. To keep things simple, though, we will use a third-party program called Key Mapper.
Key Mapper is an easy-to-use GUI tool for Linux that lets you change the mapping of input devices including keyboards, mice, gamepads, etc.
Download: Key Mapper (Free)
Follow these steps to use Key Mapper.
With the broken key remapped, you can now enter the assigned key to get the corresponding output. A good thing about Key Mapper is that it creates a preset for every key mapping, so your mappings apply even after you reboot the system.
Moving forward, should you wish to remove your key mapping, you can delete the associated preset from Key Mapper to return keyboard input to its original state.
There are several key mapping tools for remapping keyboard keys on macOS. The one we will be demonstrating, however, is a GUI-based key mapping tool called Karabiner-Elements.
Karabiner-Elements works on both Intel-based and Apple Silicon Macs, and lets you modify the existing mapping rules or write your own.
Download: Karabiner-Elements (Free)
To remap a key with Karabiner-Elements on your Mac:
Once you add the key entries, the changes should take effect instantaneously, and you should be able to type the alternative key to get input for the broken key.
With the key remapping done, there are still a few things that you need to do.
That way, you do not have to open the app manually on each bootup to apply your key remapping changes.
Windows is the easiest to key remap of the lot, and there are many different programs that let you do so with ease. Some of these programs modify the system registry to permanently change the key bindings, while others take a different (read temporary) approach wherein they do not modify the registry.
Of the various key mapper software in this category, the one we recommend is AutoHotkey, which does not modify the system registry.
Download: AutoHotkey (Free)
To use AutoHotkey to remap a key on Windows:
Now, since we are using AutoHotkey to remap our keys and not actually remapping them permanently from the system registry, the remapping works only when AutoHotkey runs. So when you reboot your Windows computer, you need to run AutoHotkey manually every time. However, we can avoid this by putting our AutoHotkey script into Windows’ Startup folder.
With your key remapping AutoHotkey script in the Startup folder, it should automatically execute every time your machine boots.
(An alternative solution is Microsoft PowerToys. However, since PowerToys is known to have issues with Windows updates, it is less reliable than AutoHotkey.)
By remapping a broken or missing key you can work around a broken keyboard until you get it repaired or replaced.
While there are numerous key mapping programs to do this, the ones we’ve discussed are easier to use and provide the essential functionality. When you get your keyboard repaired, each tool has an option to delete the mapping and return the keyboard to its default input state.
Why use third-party keyboard remapping software when you can use the official Microsoft Keyboard Layout Creator app?
About The Author