add maximum key timeout