cpp: Add shorthand for key locate