For anyone that has been visiting this thread, I've placed a corrected code listing in the form of an includeable Lite-C module over in "Lite-C Contribuitions", under the topic of "Key Mapping Management".