1. Create a new global shortcut with KCM
2. Go to Action page
3. Hit Record key strokes button
4. Type something
5. Click again on the button
6. Save with Apply
7. Open up Kate for e.g.
8. Trigger the global shortcut
https://imgur.com/delete/Kz5duowvpGVuhZl