Automatic keyboard detection

[endlessm/eos-shell#3425]
Yeah let's leave the other files untouched.