Hi hi! I've had the same problem, just press the X letter button on your keyboard, and it will allow you to "cancel", Or press the X button two times to exit out of the shop fully ^^
But if you mean it's glitching like the whole window isn't responding, I can't help, sorry!
It might look like it's freezing because you can't see how the outlines mmove a bit :<