I would like the right Alt key, when pressed together with h, j, k, l to work as the left, down, up, and right arrow keys respectively.
I don't need the right Alt key to work otherwise, but it would be nice if it were perhaps an Alt key. When used with Ctrl, the cursor keys should work like the usual ones. When editing text in a Firefox edit box, Ctrl+R_Alt+l should skip one word to the right.
How do I achieve this?
I have tried multiple things, but I wouldn't like to post them here because none of them worked. I have first tried implementing this in 2010, but there wasn't a lot of material back then. Looking around now, there doesn't seem to be much info about it either. My current OS is Ubuntu 18.04, 64-bit.