added TemplateScript keyboard shortcut support.