Missing .key caused the index check to always be -1, resulting in lastActiveItemIndex being set to -1 after Ctrl + left mouse click selecting an item. This led to an array out-of-bounds error in the onExtendSelectionToKey method when using Shift to select items.
- Corrected the logic in toggleKeySelection to properly compare keys.
- Changed `selectableLazyListState.lastActiveItemIndex = allKeys.indexOfFirst { it == key }`
to `selectableLazyListState.lastActiveItemIndex = allKeys.indexOfFirst { it.key == key }`.
closes https://github.com/JetBrains/intellij-community/pull/2900
(cherry picked from commit 54992abe8c1a27133d89e6bc48dca7e1697554d1)
(cherry picked from commit 610806d90dc4902d0c01b62d5ffe4f161050393b)
IJ-MR-155570
GitOrigin-RevId: cf3000beeecf62d6c8441e8d4163c980724eec97