Revised deployment script.
Capturing return key events and paste events.