Does Entity:GetKeyValues and SetKeyValue work?

Reading and applying key values set in the map for entities would help my addon, but I’m not sure if they function as intended. There are people complaining about how it’s broken elsewhere and an open (albeit very old) github feature request saying the feature is broken. I’m extremely new to addon creation, so I want to make things as easy to understand as possible; I don’t want to fiddle with something that may or may not work sometimes.

GetKeyValues may not return all the keyvalues, everything else works 100%.

That’s a shame. Testing the function with a print loop shows that it happens to miss some of the values I was hoping it would cover. I hope this gets fixed at some point. Thanks for the clear answer.