Amend the behaviors and functions for inserting keys.