void (boolean force) { boolean shouldUpdate = force || myCtrlPressed == myModifierProvider.isCtrlPressed() || myShiftPressed == myModifierProvider.isShiftPressed() || myAltPressed == myModifierProvider.isAltPressed(); if (!shouldUpdate) return; myCtrlPressed = myModifierProvider.isCtrlPressed(); myShiftPressed = myModifierProvider.isShiftPressed(); myAltPressed = myModifierProvider.isAltPressed(); super.update(force); }