Unfortunately any keys I've checked are not magnetic.
We now put on of those foam floating key rings for boat keys on any key which this could be an issue. It would probably never make it thru the pit grate but if it did, it would float. Get them at walmart, etc.