The reason why cats like to make keyboards may be because they like to observe, explore and play. When cats see the keyboard, they may think it is a novel item and want to learn more by touching and playing with it. The keys and cursor on the keyboard may also attract your cat's attention, making them more willing to work on the keyboard. In addition, cats may also use keyboards due to their hunting instinct. In the wild, cats will hunt various animals and attack with their claws and teeth. At home, cats may transfer this instinct to their keyboards, causing damage.
If you want to stop your cat from doing the keyboard, you can try placing the keyboard higher or monitor your cat's behavior while using it. You can also provide your cat with a variety of other toys and activities to help them satisfy their need to observe, explore, and play.