Added History arrow key magic.