pick one of the five slots, and put the two keys in either of two possible orders. we have 10 adjacent events. c(5,1)*2
select two of the five slots and put the two keys in either of two possible orders. we have 20 non-adjacent events. c(5,2)*2
the overall probability is 10/(10+20) = 1/3