fixing event handler definition

oops, needed to pull the command out of the event
Merge pull request #476 from kosmik-koi/master

fixing event handler definition in documentation