Does anyone know a way to take a keystroke input and convert it to hex. I know about the hex() and ord() functions, but I don't know if I am using them right. The idea is to take a tn3270 program that doesn't know how to use the F1-F24 function keys as they are and modify the key mapping file...