Automatic keyboard detection

[endlessm/eos-shell#3425]
Use C-style comments consistently across the file