Move the cursor left
Ctrl-b
move the cursor right
ctrl-f
ctrl p
view the previous command (or move the cursor up)
ctrl - n
view the next command (or move the cursor down)
ctrl a
move the cursor to the beginning of the line
ctrl - e
move the cursor to the end of the line
ctrl w
erase the preceding word
ctrl u
erase from the cursor to the beginning of the line
ctrl k
erase from the cursor to the end of the line
ctrl y
paste erased text (for example, from ctrl u)