keyCombinationCallback = (rawKeyCombinations) => {
      assistantHotkey = rawKeyCombinations.join('+');
      const keyCombinations = rawKeyCombinations.map((key) => getNativeKeyName(key));

      assistantHotkeyBar.innerText = keyCombinations.join(' + ');
      assistantHotkeyBar.classList.remove('input-active');

      assistantHotkeyBar.removeEventListener(
        'key-combination',
        keyCombinationCallback,
      );

      // Mark input as valid/invalid based on hotkey
      validateAccelerator();

      // Enable or disable reset button
      if (assistantHotkey !== assistantConfig['assistantHotkey']) {
        mainArea
          .querySelector('#hotkey-reset-btn')
          .classList.remove('disabled');

        mainArea.querySelector('#hotkey-reset-btn').onclick = resetHotkey;
      }
      else {
        mainArea.querySelector('#hotkey-reset-btn').classList.add('disabled');
        mainArea.querySelector('#hotkey-reset-btn').onclick = null;
      }
    }
Callback function to handle raw key combinations.

@param {string[]} rawKeyCombinations
Returns a list of keys pressed by the user.
The keys returned are compliant with Electron and
is cross-platform.