Store last characters typed