added `getKeys` method.