change document.Event to enchant.Event