code: def handler(self, event):
          
  
          if self.escape(event):  # A chance to escape
              self.stop()
          elif self.diagnostic:
              self._diagnostic(event)
          else:
              self._tap(event)
          #This is needed according to the pyHook tutorials 'http://sourceforge.net/apps/mediawiki/pyhook/index.php?title=PyHook_Tutorial'
          return True
docs: Upper level handler of keyboard events.