Press Ctrl and the up arrow together to move to the beginning of the previous line.
The first Ctrl-up moves to the beginning of the current line if the editor’s cursor is not already there.