simplify Key.pm