To copy text from iTerm2 with keyboard only, press s-S-c to activate copy mode.

In copy mode, press v, V or C-v to toggle selection by character, line, or rectangle, similar to Vim’s Visual mode. hjkl and word-based movement keys are also supported.

To copy the selection, press y. To quit copy mode, press q.