Only show cursor block animation when focusing with mouse or touch