I don't think there is a specific condition for it, but I made some scripts for doors and entities that activate after holding the 'Enter' key down for 1 second:
For doors:
Door that will open and close indefinitely:
;Artificial Intelligence Script
;Header
desc = hold enter to activate
;Triggers
:state=0:state=10
:state=10,plrdistwithin=40,keypressed=28 1:timerstart,state=20,activate=2
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,plrdistwithin=40,keypressed=28 1:state=30,activate=0
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0
:state=20,activated=2,timergreater=1000,keypressed=28 1:state=1,setframe=0,sound=$0
:state=30:state=31,timerstart
:state=31,activated=0,timergreater=1000,keypressed=28 1:state=3,sound=$1,colon
;End of Script
Door that will open and never close:
;Artificial Intelligence Script
;Header
desc = hold enter to activate
;Triggers
:state=0,plrdistwithin=40,keypressed=28 1:timerstart,state=1
:state=1,plrdistfurther=40:state=0
:state=1,keypressed=28 0:state=0
:state=1,timergreater=1000:activate=1,setframe=0,sound=$0,state=10
:state=10:incframe=0
:state=10,frameatend=0:state=2,coloff
;End of Script
For entities:
Entity that can be activated indefinitely:
;Artificial Intelligence Script
;Header
desc = hold enter to activate
;Triggers
:state=0,keypressed=28 1:timerstart,state=1
:state=1,plrdistfurther=40:state=0
:state=1,keypressed=28 0:state=0
:state=1,timergreater=1000:activate=1,state=2
:state=2,activated=1,keypressed=28 1:timerstart,state=3
:state=3,activated=1,plrdistfurther=40:state=2
:state=3,activated=1,keypressed=28 0:state=2
:state=3,activated=1,timergreater=1000:activate=1,state=0
;End of Script
Entity that only activates once:
;Artificial Intelligence Script
;Header
desc = hold enter to activate (cannot activate again)
;Triggers
:state=0,plrdistwithin=40,keypressed=28 1:timerstart,state=1
:state=1,plrdistfurther=40:state=0
:state=1,keypressed=28 0:state=0
:state=1,timergreater=1000:activate=1,state=2
;End of Script
EDIT: The entity scripts might not work, but the door scripts do. I don't have time now, but if there is a problem I'll fix it tomorrow.