Beginning of the line: Ctrl+a

End of the line: Ctrl+e