OnControlUp - ScriptObject
From Creation Kit
Listens for the release of game controls that have been registered via RegisterForControl.
Event OnControlUp(string control, float time)
- control: The control press.
- time: The amount of time the control was held down in seconds.
Event OnControlUp(string control, float time) If (control == "Forward") Debug.Trace("The Forward control was released after" + time + " seconds.") EndIf EndEvent
- If multiple controls are registered, you'll want to differentiate in the event body as demonstrated above. If only one key will be registered for the form, such differentiation is not necessary.