Automatic keyboard detection

[endlessm/eos-shell#3425]
Not sure why you need this here