Several libraries define their own codes for they keyboard (GLFW, GTK, GLUT, etc)
Maybe it would be nice to agree on a standard datatype for keys? This might also include digital buttons on a joystick, etc...
The Windows API has virtual key codes for this.