Question:
I am making a game where you use keydown to move, but when i hold a button on the keyboard it repeats and i want to disable that. If possible, how could i do that without making a cooldown and just disabling it? Repl link: https://replit.com/@AriWale/BestTealSpyware?v=1
This is not HTML; it’s JavaScript. HTML just sets up the structure of the website, but JS gives it features, and CSS gives it aesthetics. You are asking a question about JavaScript.
What I meant was that the question title contained “in html” when this is a question for JavaScript (JS). HTML can’t make a game, but JavaScript within HTML can. I never said it was Java; I always used either “JavaScript” or “JS”.