I have a keyboard on which the "P" key does not work but I can't see the point of chucking it away for one defect. I therefore want to map one of the working keys to "P". This has proved a mighty, almost circular, challenge. As is typical in Linux as well, there are many solutions, all of which kind of work but not really. Ideally I want the keys swapped anytime I boot, be it to the terminal (CLI) or X/Desktop (GUI).
The "circular" problem is that's a right mission to enter the character "P" in the fixes below if you don't actually have a character P.
How best to map a working key (like section/degrees) to a non-working key like "P"?