arrow keys to move backward and forward in history (replacing space)