Actually, as he sleeps on my lap when I’m working he has always managed during the odd yawn/stretch episode to manipulate the keyboard.
Most of the time he intuitively manages to use the keyboard before I can save the work any most of the open windows; and he seems to have learnt a few keyboard shortcuts to abort out programs without saving even I don’t know.
But he is obviously interested in taking over all the programming work himself these days. Here he is taking a publicity photo from his office.