Adds commonly duplicated key select/reject code to Hash