in reply to Automation of keystroke sequence

How are you automating this (what module)?

http://en.wikipedia.org/wiki/Ctrl+Z

$ perl -le'print chr 26' |cat -v ^Z