So if you use the wrong 2 pins, i.e. 2 pins that are always connected, like A&D or B&C, then it does not work. You should use 2 pins that are normally not connected: A or D on one side, B or C on the other side.
A useful point to make, I think, is that components have datasheets (or should have) - all questions
ought to have an answer in the datasheet. Its not impossible for some random manufacturer to come
out with a 4-pin button switch with a different pin-out (unlikely, but not impossible) - so always check
datasheets if you want to avoid mistakes...