Press esc-esc once to add sudo (normal behaviour), press it twice to remove it from the beginning of the line.