Just incase this helps, I think you’re experiencing an issue related to the market here.
Once a market is built, selected and then deselected the game seems to bind Ctrl+Shift+d to interact with the market, which then sells a stack of food without having the market selected. The same thing happens with Ctrl+Shift+ any of the other market buy/sell hotkeys.