I've found very big vicious dogs tend to keep cats away. So does my 6 year old daughter, and she can almost be as vicious as the above dog ! Hissing noises work , so I suppose a sound that hissed at the cat when it touched the keyboard. Otherwise get it in it's kitty carrier, and take it down to a cat's rescue centre. (not that I'd do that to my cat !)