ccampbell/mousetrap — pull request #111 by dtao (2013-04-06 00:49:51+00:00)
Title: Add Mousetrap.record() method to capture and return keyboard sequences

Strangely enough, I decided I wanted something like this at almost the same time as @evitolins (see #109).

You said you'd prefer this as an extension; but I figured it couldn't hurt to submit the pull request and see what you think. I also added a little tester to your 'peanut butter' UI.