Tracks the focus event for better accessibility styling