title: How would I test for when a key is released in JavaScript
body: <p>I would like to have a variable become true when I press a key, and become false when it is released. I have a function that sets the var to true when the key is pressed, but I need to have a function called when a key is released as well to reset the var to false.</p>