How to make command+arrow go to begining and end of line in iterm2?

With the default settings, command + arrow_left switches to the tab on the left. How to change it so that it puts the cursor at the beginning of the line instead ?