code: def ungrab_keyboard(self, time, onerror = None):
          
          request.UngrabKeyboard(display = self.display,
                                 onerror = onerror,
                                 time = time)
docs: Ungrab a grabbed keyboard and any queued events. See
          XUngrabKeyboard(3X11).