These forums are pretty dead, by the time you actually get an answer you've already figured it out for yourself.
I stumbled upon this in another example since it doesn't appear to be documented but if someone else is looking for how to do it, you simply pass the entire text of the function in quotes, like this:
.Events(e => e.Change("function(){ alert('eureka!') }"))