.
I have a simple script that does some useful housekeeping jobs;
however, it will hang up and require a re-command if any keyboard activity
occurs during the small time it takes to perform the housekeeping jobs.
Are there some simple commands that would allow me to lock-out
the keyboard just before and re-activate the keyboard just after
the script operations are in process?

