Automatic keyboard detection

[endlessm/eos-shell#3425]
I'd prefer to leave the other files untouched.