TPTMP: support tpt versions without sim.deleteStamp, fix key repeat issues