# Listen for the keydown event on the document. In the event handler, clear the interval. You must assign the setInterval() to a variable to be able to do this.
# https://developer.mozilla.org/en-US/docs/Web/API/Element/keydown_event Element: keydown event - Web APIs | MDN The keydown event is fired when a key is pressed.