Add function to get all subkeys for a key grip
(cherry picked from commit de734e97dee4bc23f6aa73f1b730e565c8989a7d)