Using Ctrl+C is the standard to kill a CLI application.
Would you be ok with using that instead of allowing any key press to kill it?
My reason is that it is easy to press a key while the terminal is in focus which kill the process and then user needs to restart the server and wait for it to be available.