If you don't mind having gvim installed you can run gvim in commandline mode with gvim -v. Then you should have a version of commandline vim able to access the keyboard.
Also if gvim is invoked as vim it will act like it was invoked as gvim -v, so if you do something like this:
mkdir -p ~/bin
ln -s /usr/bin/gvim ~/bin/vim
echo "PATH=~/bin:$PATH' >>...