Add key to patterns