Many thanks to everyone! All the comments have been very helpful. If, in future, a player is in an offside position when the keeper kicks from hands, I think I will "adapt" the Laws of the Game in my own mind to read as follows in similar circumstances (my addition in bold):-
"Deliberate play...