Allow :exec mode changes to remains when keys are finished

Pass keys one by one to the input handler so that BatchUI is not needed
We can now use :exec to pre-fill the command line without validating
the command.