code: function (evt) {
      var key = evt.keyCode;
      var KEYS = {space: 32};
      switch (key) {
        // <space>: Toggle recording.
        case KEYS.space: {
          this.toggleRecording();
          break;
        }
      }
    }
docs: Keyboard shortcuts.