code: public function start()
      {
          $this->eventDispatcher->addListener(
              'key:stop:listening',
              function () {
                  $this->isListening = false;
              }
          );
  
          $this->resetListener()
              ->overrideReadlineHandler()
              ->runLoop()
              ->restoreReadlineHandler();
      }
docs: Initiates the listener