See the SDL documentation. Scancodes represent the physical position of the keys, modeled after a standard QWERTY keyboard, while Keycodes are the character obtained by pressing the key.
On an AZERTY keyboard, pressing A will emit a 'Q' scancode and an 'a' keycode.