You mean that "character code" is different from "key code?" hmm...
Yes.
Keycodes refer (more or less) to a keys physical location on a keyboard (or more precisely, the key with a particular 'glyph' on it), and doesn't take shift/ctrl etc into account.
Character codes on the other hand are affected by shift/ctrl etc and can be the result of multiple keystrokes.