Don't forget that just about everything in OSX and Linux supports readline navigation:
C-n - next line
C-p - previous line
C-f - next char
C-b - previous char
C-a - beginning of line
C-e - end of line
I assume there are others as well, but that's pretty much what I use.