code: function() {
          // The last component to be unmounted uninstalls the event listener.
          if (components.length == 0) {
              document.removeEventListener(EVENT_TYPE, dispatchEvent);
          }
          components.splice(components.indexOf(this), 1);
      }
docs: Un-register for keyboard events.