Replacing key names with keycodes.