code: def listen(queue):
      
      if not os.geteuid() == 0:
          raise OSError("Error 13 - Must be run as administrator")
      listener = MouseEventListener(lambda e: queue.put(e) or is_allowed(e.name, e.event_type == KEY_UP))
      t = threading.Thread(target=listener.run, args=())
      t.daemon = True
      t.start()
docs: Appends events to the queue (ButtonEvent, WheelEvent, and MoveEvent).