Install xcape by entering the following commands in the terminal:
sudo apt update sudo apt install xcape
Description:
Configure modifier keys to act as other keys when pressed and released
xcape allows you to use a modifier key as another key when pressed and released on its own. Note that it is slightly slower than pressing the original key, because the pressed event does not occur until the key is released. The default behaviour is to generate the Escape key when Left Control is pressed and released on its own.
Homepage: https://github.com/alols/xcape
Version: 1.2-2
Section: universe/x11