Rebind up and down arrow keys in terminal