If prompted for text at the standard input, you can tell the command you're done entering text with what key combination?
Ctrl + D (Windows) or Command + D (Mac)
Ctrl + A (Windows) or Command + A (Mac)
Ctrl + Z (Windows) or Command + Z (Mac)
Ctrl + E (Windows) or Command + E (Mac)