when quit the app and kill the global key process