modified KeypadEventCodeConvert()