Streamlined formatting of keys