[1.7.x] Fixed #22398 -- Added detail about callable in KEY_FUNCTION docs

Backport of 8da86fd19b from master