Separated `event` into two methods

Closes https://github.com/PistonDevelopers/piston/issues/578
Merge pull request #579 from bvssvni/master

Separated `event` into two methods