TV host Andrew O’Keefe, accused of assaulting his girlfriend last month, will apply to have the matter dealt with under mental health legislation, his lawyer tells a Sydney court.