Key structure and flow