Most keyboards send scancodes when a keys are pressed which contain the row and column of the key. It's the responsibility of the Operating System to convert them into characters. This mapping is done by keyboard layouts.
Grav was with by Trilby Media.