xev shows X mappings /usr/ports/misc/hotkeys Keyboards layout with xmodmap: Must be done after X is running & display is found, Internal English keyboard is done with ~/.xsession External american keyboard initialised by /etc/usbd.conf (as american external USB may be plugged in before or after X session starts, so there is indeterminacy).