Several years ago, I began training on our cats (2), especially mine. They thought anything on my desk was theirs to play with. I have an area that is cleared off, where they can sit/lay. That wasn't good enough, especially with all the neat cat toys on the desk. I'd come in to find they'd batted all kinds of things onto the floor. Small wires were a favorite for them to pull, and chew, especially headphone wires. Of course, them chewing on the headphone wires would ruin the headphones. I hated them walking on my keyboard too. Totally unacceptable behavior.
2 pairs of headphones later, and I'd had enough. While I was at Best Buy replacing the latest ruined pair of headphones, I grabbed a pack of compressed air. I actually use the compressed air to keep the inside of the computer cleaned out. This time, instead of putting the can of air away, I left it on my desk. The first time my cat tried walking on the keyboard, I grabbed the can of air, and blew some in her direction. She hated the sound, and took off. I continued doing this with both cats, every time they left their cleared area, to invade my area. No more walking on the keyboard, batting things on the floor, and chewed wires. They know how to behave on my desk. I don't even have to use the canned air around them anymore.
Dh has criticized me for quite some time about it. Our desks are back to back, facing each other, so when I first started training them, they'd walk over from my desk, onto his. Awww, poor kitty, did that mean mama chase you away? You come over here. I didn't let it phase me. If he wanted them over there on his desk misbehaving, that suited me just fine.
Yesterday, he got in a new motherboard. We had all the other components he needed to rebuild his computer. He got everything done, and was making some final adjustments, when his cat walked across his keyboard. She messed up the new hard drive he was reformatting, and wiped out our wifi antenna system.
He spent all night getting the wifi antenna system back up, and all the wireless security cameras programmed back into the system. He's not criticizing my can of air now.