This is for when certain shortcut triggers a window blur action (eg, command+shift+c, command+tab), then some keys state won't be released in  as  events are fired in other window objects. As a result, it causes bug in  method when comparing registed shortcuts with key states in  So just reset the  in window  event handle which is here.