As Bluetooth is a wireless transmission technology, could you please make sure:
1/ The keyboard is not resting on a metal surface,
2/ There are not many other devices which has Bluetooth connection or turn on.
3/ Avoid keeping the keyboard far away from your connected device which may also interfere the wireless transmission.
Please feel free to check and get back to us. Thanks.