hidden"; if (hint.hasAttribute(attributeName)) { hint.removeAttribute(attributeName); } else { hint.setAttribute("hidden", "true"); } }; window.addEventListener("keydown", function (event) { if (event.defaultPrevented) { return; } if (event.key == "?") { toggleHelp(); } else { return; } event.preventDefault(); });