I’ve forked your mod into ‘Kill Counter Improved’: https://mods.factorio.com/mod/kill-counter-improved
It adds a toggle shortcut (button and keyboard shortcut) and makes a couple other useful changes, like hiding the window title unless objective is enabled.
I’ve also updated it for 2.1 (which only required a version number change). I hope it’s okay, and all thanks goes towards you and seky16 for the original code.