Select Last, or Shift Marquee Selection Right ⇧↘
That’s shift-end. If you are shifting in a MIDI region the selection point moves to the end of the current note (or to the start of the next note).
Select parts of regions in the Logic Pro Tracks area — Apple Support
Press Shift–End (the default Select Last, or Shift Marquee Selection Right key command).
I also learned this remarkably useful Marquee selection tip…
Select parts of regions in the Logic Pro Tracks area — Apple Support
If you start recording after making a marquee selection, Autopunch mode is activated, and the marquee selection is replaced by the punch locators. All tracks within the marquee selection are record-enabled, and all other tracks are record-disabled.