It is a bit problematic, because "ansi" terminals didn't have such keys (AFAIK), so programs which run on "ansi" terminal doen't expect such keys.
You will need to change terminal type (TERM variable) to "linux" for example, but this could cause other incompatibilities.
I tried it on AmigaOS console, but I got trashed display (amiga console doesn't handle all needed escapes). Maybe on MOS console it will work better.
Then You will need to edit keymap file to modify all special key to send escape sequences same as those send by keyboard on linux console (or other terminal).
I will try to do this when I will have my Pegasos2 (I'm still waiting for it).
Marek Szyprowski ...... happy MorphOS, AmigaOS and Debian/Linux user ........