Myosin phosphatase dephosphorylates HDAC7, controls its nucleocytoplasmic shuttling, and inhibits apoptosis in thymocytes.