Automatic keyboard detection

[endlessm/eos-shell#3425]
I suggest instead of adding an "artificial" `CONTINUE` step here, to make `process_line()` have a `next_step` out argument and return a `gboolean` for continue vs error.