keys pattern