How to terminate program within PyCharm when running the program from command line terminal?

For example, how to terminate it as shown the screenshot above? I can't terminate without shutting down Pycharm? I am on MacPro.
Please sign in to leave a comment.