If a command is too long, you can move your cursor to the beginning or the end of the line.

Move to start of the line.

ctrl+A

Move to end of the line.

ctrl+E