Click on a check box in crafting window makes a option on bottom to cancel.
for keyboard only people like me pressing a specific key turns the check box on/off like "End" key to End/Quit crafting.

at least that key I know I don't press as often as the Esc key and can't say I pressed it by mistake! + have to choose option after checking the box to actually quit.