quit focused app

Hi, i would like to create a shortcut to kill whatever app currenrtly has focus. I can see a way to kill the app which the cursor overlies, but that is nnot always going to be the app that has focus. Is there a way to do this? Thanks in advance for any help.

you mean like pressing cmd+q? Or do you want to force kill the app?