You might also have a look at /etc/inputrc.