I had two cats with my first wife.
Nutmeg learned that Daddy Did Not Like Anyone Walking On His Keyboard.
Coriander, OTOH, liked to be sweet and adorable and just sit on my lap and "oooooh can I tap on keys too, pleeeease?" "No no, honey, that's daddy's keyboard!" "Okay." <wait> <reach out and tap on keys> Gives me a look like "I'm the baby, gotta love me." Usually worked. 🙄