I had searched the code for this and couldn't find anything related to the pet or the keybind that helped so I ended in using a macro on my G15 keyboard which pressed the key and clicked mouse 1 afterwards.
As this seems not to be allowed somehow I'm playing without macros now and it is annoying but works