How to change keyboard mappings in Linux and Windows

Table of Contents

Case #

You have a broken or malfunctioning keyboard key in your Linux or Windows machine and you need to permanently remap it to another key.

Solution #

Linux #

In the case of Linux you can achieve this via the Key Mapper software. Key Mapper is a free and open-source tool written in Python 3. You can download it from You can install key mapper using following command in ubuntu, after having downloaded the .deb package:

sudo apt install ./Downloads/key-mapper*.deb

An example of Key Mapper is shown below.

Windows #

Using PowerToys, you can make any key on your keyboard act like any other key and even remap shortcuts. You can download Powertoys from Make use of keyboard manager (part of PowerToys) as per the official documentation:

Powered by BetterDocs