ode class="language-javascript">function ResettableToggle() {
    var toggleKey = false

    function reset() {
        toggleKey = !toggleKey
    }

    return {
        view: function() {
            return [
                m(&quot;button&quot;, {onclick: reset}, &quot;Reset toggle&quot;),
                [m(Toggle, {key: toggleKey})]
            ]
        }
    }
}</code></pre>
<hr>
<h3 id="debugging-key-related-issues"><a href="#debugging-key-related-issues">Debugging key related issues</a></h3>
<p>Key