You can trigger on the property IsKeyboardFocusWithin in the ItemContainerStyle and set IsSelected to true.
You could also use a Setter instead of a single frame animation but then the selection will be lost again once the focus leaves the ListBox: