No, nothing is hardwired in recent kernels, AFAIK. "getkeycodes" computes the actual range for which scancode==keycode and prints it out. Perhaps the setkeycodes manpage could just refer to the getkeycodes output. -jim