Custom keyboard shortcuts in TextWrangler

Ha! I finally figured it out. None of my web or documentation searches revealed the answer, and I had almost given up. If you have an AppleScript that you want to assign a keyboard shortcut to in TextWrangler, go to "Window: Palettes: Scripts" to turn on the scripts palette, which contains a "Set Key" button.

Why is this important? For example, I can now use TextWrangler as my LaTeX editor without sacrificing any of the convenience of TeXShop — I set up some custom AppleScripts that will send my TeX, R and HTML files to the correct programs. This is a nice feature because TextWrangler is such a powerful editor, and I write code enough that I actually need that power.