Fruit is higher in carbohydrate, which increases your blood sugar response. As the goal is to keep blood sugars in check, most people need to minimise or avoid a lot of fruit. Berries are low sugar enough to typically be fine on a ketogenic diet, other fruits like apples and bananas are usually too high in carbohydrate (unless you are very active).