adds support for using up/down keys to navigate history (just like readline)