you can replace this with `this.keys[String.fromCharCode(keyCode)] = false`; I think there is a cleaner way even than that actually