I have tried the following keys: Ctrl+D, Ctrl+C, and Ctrl+Z. The programming I am running on bash doesn't stop unless EOF is reached.
Following worked for me:
Ctrl+Z, and then press Enter.