You can hide tangent handles for keyframes that are not selected.
To hide inactive tangent handles:
Viewing Details: