Automatic keyboard detection

[endlessm/eos-shell#3425]
Should this logic be in `cc_keyboard_query_get_selected` instead?