Automatic keyboard detection

[endlessm/eos-shell#3425]
Sure that's ok.