Hi
It's very simple.
In telnetCe Press Alt+D for the diagnostic Mode. and K for Keyboard test/
Press any button and report the Hexa Value ( example : F12 =5500 ; PgUp=4900 and PgDown=5100; )
In terminal emulation Search about Key Macro and enter the and his Hexa Code
------>
Very easy
Best regards