Triggering a callback when user put in the Konami cheat code anywhere in the page
You clone an array 3 times by using:

currentSequence = Array.prototype.slice.call(konamiSequence);


but with ES6, you can also use the spread operator to clone an array:

currentSequence = [... konamiSequence];


It took me a while to figure out the complex outer construction in your code:

const {onKonamiSequenceTriggered, clearKonamiSequanceTriggered} = (() =&gt; {

    .... actual code ...

    return {
        onKonamiSequenceTriggered,
        clearKonamiSequanceTriggered
    };
})();


It is an object destructuring assignment which is assigned two methods by using a self-executing anonymous function. I guess the advantage is that you can use local scope within the anonymous function. Note that you could leave out all of the code, in the excerpt above, and your code would still work, albeit completely in global scope.

I did find code on Stack Overflow which looks similar, but it is obviously not the same.

I'm not an Javascript expert, so that's all I have. I learned something from this, but I still think that Javascript has some awful language constructs (in other words: I'm not used to it).