I experience this on a regular basis, at some point Spinner decides that the best place to sit is on my laptop. For some reason cats love keyboards, they might even love them as much as the trusted old cardboard box.
Why do they do it? My theory is when you’re using this apparatus you are not paying attention to them therefore, the cat must sit where they can’t be missed. What to do?

Get your own keyboard. Hot Keys a USB powered cat bed – keep your cat close and your keyboard even closer
The people at Meow Mix launched Catstarter an online crowdfunding platform that invited consumers to submit their most creative cat-focused tech products and start-up ideas. Hot Keys, which came in first place, is part cat bed part keyboard – everybody wins.
Your cat will never have to feel left out again. Bonus, you get your work done.
great idea! Pippi would probably push me off my keyboard and give me the catstarter
lol yes I can see that happening.