make Key::equals take a pointer instead of a reference