- this.code = code
- this.has_alt = ((code & 0x01 << 8) != 0)
- this.has_ctrl = ((code & 0x01 << 9) != 0)
- this.has_shift = ((code & 0x01 << 10) != 0)
- this.character = String.fromCharCode(code & 0xff)
+ this.code = code;
+ this.has_alt = ((code & 0x01 << 8) !== 0);
+ this.has_ctrl = ((code & 0x01 << 9) !== 0);
+ this.has_shift = ((code & 0x01 << 10) !== 0);
+ this.character = String.fromCharCode(code & 0xff);