1650s, "jailer," from turn (v.) + key (n.). In reference to a job that only has to be done only once, it is recorded from 1934. The notion probably is of something that can be accomplished with a single turn of a key.
turn-around
turnbuckle
turncoat
turner
turnip
turnkey
turn-off
turn-on
turn-out
turnover
turnpike