Is it plugged into a USB-A port that supports USB-3? Or near one that does? If you’re not sure, they are usually blue on the inside.
USB3 via USB-A ports has a well known interference problem at 2.4Ghz that will make small dongles unreliable. The solution is to only use them in USB-2 ports (usually black) or use a USB-2 only capable usb extension cable to move them physically a foot or two away from the ports.
In general though, I don’t trust wireless keyboards of any sort and am suspicious of wireless mice. I’ve had too many issues with them over the years.