def add_key_logger(self,logfun):
        self._keylog=logfun
logfun should be function that takes disp_fun and line_buffer object
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/pyreadline/modes/emacs.py/EmacsMode.add_key_logger