How can I disable Kies in Samsung Galaxy S2?
Go to Settings > Applications > Development > and check USB debugging

After that if you connect your S2 to a PC it will connect in USB mode and you won't get the KIES application popup.