To select an entire line of text in a document with a keyboard:

If you’re at the end of the line

Shift + Home

If you’re at the beginning of the line

Shift + End