If you're running on the console display of a Sun or HP, then xkeycaps will interrogate the attached keyboard hardware directly to determine what keyboard you're using. But if you're running remotely, or on another type of machine, then you must specify a keyboard somehow.