Comment
Comment by zamadatix
That depends entirely on whether you opt to do the compare by code or key. E.g. in JS KeyboardEvent.code == "KeyW" may resolve true even though KeyboardEvent.key == "W" may resolve false because the user is on AZERTY or what have you.