Autodetect keyboard model

Switch the keyboard model to "macintosh" on Apple computers. Use pc105
otherwise. Unfortunately the keyboard model is not directly detectable
so we have to resort to this heuristic.