Fixed bug: modifierPressed still wasn't reset after modifier was pressed in some occasions