How to send EOF to input in notebook environment?

I’m trying to use Jupyter Notebook as a workbook enviroment for C using this kernel:

With a C program, executed on the command line, when it takes input, you terminate the input by pressing Ctrl-D to signal EOF (End of File).

In a browser environment, Ctrl-D is often mapped to Bookmark.
I also tried to run the notebook in Visual Studio Code’s notebook environment but there Ctrl D is unresponsive.

Can anyone suggest a way or workaround to pass EOF to the C program?

I’m not sure if this is something that would need to be implemented at the kernel level or at the notebook level, but any pointers in the right direction would be much appreciated : )