Code, key and keyCode
The physical code describes where a key sits and never changes with your language layout. The key is the character that position currently produces, which does. If a key lights here but types the wrong letter, your layout setting is the culprit, not the hardware.