I’ve written an AutoHotkey script to achieve this.
I put the code in Github.
You can use Shift + F1(Or other you can change in the script) to reset the cloze number, F5 to Cloze or UnCloze(with number remaining, equivalent to Ctrl+Alt+Shift+C), F6 to Cloze or UnCloze(with number raising, equiavalent to Ctrl+Shift+C) and Shift + ` to Save card and reset cloze number.