Improve key bindings in Comint mode (C-p, up, M-p, C-up)