Keyboard shortcut for stopping and restarting a command line application
You mean in a single keystroke?  No.

Depending on whether the daemon supports restarting itself/reloading its configuration, you might be able to restart it with a HUP, e.g.

sudo killall -HUP httpd


but A. that's not a keystroke, and B. it requires the daemon to have code to support doing that.