For those using osquery-like tools, I added an extended attribute with
the following command: !/bin/sh keyboardType=$(/usr/local/bin/osqueryi
--csv --header=no "select value from plist where path =
'/Library/Preferences/com.apple.HIToolbox.plist' and...