Keyboard shortcuts that moves the caret to the beginning and end of a selection would be incredibly useful in creating keyboard macros, especially for things like quoting or commenting a specific selection. The current shortcut to comment selections is impractical for most daily uses.
The shortcut could be used to create a macro that does this
SOLVED! Thanks @CaseySmith! I knew the arrow keys will take you to the beginning or end, but I was trying to express a shortcut that essentially did both simultaneously, for use in the macro recorder. Your solution of just copying the selection and pasting solves this issue perfectly! It seems so obvious now, thank you for pointing that out!