add some more informative debug output to key processing.