SOLVED!!
Turns out it was not a hardware problem. But in the settings of the keyboard.
Windows 10 has a different sound effect for disconnecting a device. I just heard it while unplugging my camera. So I did some research, and this guide solved my problem!
Long story short- The keyboard disconnects itself to save power.
You can disable this setting by going to control panel->hardware and sound->devices and printers->RIGHT CLICK->hardware->properties->USB input device (or the name of the keyboard)->change settings->power management->uncheck "allow computer to turn off this device to save power".