You cant use the keyboard when running Excel VBA. It will screw
things up.
You could use sendkey functions, but there are tons of ways of
stopping execution anyway.
Why do what to stop it? What is it doing when you want to stop it?
Is it running a BOF EOF? A loop? Does it go into error mode at the
end?