use keymodel to determine if the key is tempoary