Find key automatically