viewof wordToMatch = {
const container = html`<div><input type=text placeholder="Mot à valider"></div>`
const input = container.querySelector("input")
input.addEventListener("focus", event => {
input.select()
})
input.addEventListener("keyup", function(event) {
event.preventDefault();
if (event.keyCode === 13) {
mutable isNewGame = false
container.value = input.value
container.dispatchEvent(new CustomEvent("input"))
}
})
return container
}