check window.event existance before check
Release 0.0.3