Actually onPause is a callback called when the game is being paused,
and the right way of pausing/resuming the game is to call the
me.state.pause or me.state.resume function :
http://www.melonjs.org/docs/symbols/me.state.html#pause
However, today when the engine in "in pause" objects are not anymore
updated or draw, so i don't think this would be the right way to go
for this kind of thing. I would rather specify a new screen and switch
to it when needed (then switch back to the game), or define an
"overlay" object.