Add vim_input wrapper and use it to pass keys on tests

This is done to get out of any "press enter to continue" screens, because Nvim
no longer handles deferred events(such as calls to vim_command or vim_eval) when
in that state.