up key pops the last line