            handleChar(e.key);
          }
        });
        hiddenInput.addEventListener('input', () => {
          const v = hiddenInput.value;
          if (v) {
            for (const ch of v) handleChar(ch);
            hiddenInput.value = '';
          }
        });

        resetGame();
      })();
    </script>
  </body>
  </html>
