code: def on_key_event(self, event):
          '''handle key events'''
          keycode = event.GetKeyCode()
          if keycode == wx.WXK_HOME:
              self.zoom = 1.0
              self.dragpos = wx.Point(0, 0)
              self.need_redraw = Truf on_key_event(self, event):
          '''handle key events'''
          keycode = event.GetKeyCode()
          if keycode == wx.WXK_HOME:
              self.zoom = 1.0
              self.dragpos = wx.Point(0, 0)
              self.need_redraw = True
docs: handle key events