If you use a Bluetooth keyboard with trackball over a long distance, your connection may drop. For more stable performance, you can shorten the distance. Also, Wi-Fi signals can negatively affect the Bluetooth connection. A low battery on your keyboard could be another reason for an unstable connection.