Fixed bug: modifierPressed wasn't reset after modifier was pressed