Script of Key Capture