fixing event handler definition in documentation

oops, needed to pull the command out of the event