Update cursor action's state whenever the cursor state changes