User Activity

Ive assigned a custom button to toggle between Manual and Auto Focus on R5/R5ii  but it does not do anything.Any idea how to make it work?