I have a USB keyboard which has a somewhat faulty wire. On shaking the wire, the USB keyboard sometimes gets disconnected or sometimes gets connected. This is normal.
But I have another very strange phenomenon with my keyboard: On switching on/off the tubelight in my room, I hear the USB disconnecting and reconnecting sound clip in my computer. This only happens when my keyboard is connected to my PC.
I do not have any light sensors in any device. Or is this due to some fluctuations in the voltage that the USB kb gets disconnected for a few milliseconds?