Make it easier to specify sketch event callbacks [#1887]