Bool bIsHotkeyPressedInt iHotkey = [DXScanCode of your choice here]Event OnInit() RegisterForUpdate(0.2)EndEventEvent OnUpdate() If bIsHotkeyPressed != Input.IsHeyPressed(iHotkey) bIsHotkeyPressed = !bIsHotkeyPressed If bIsHotkeyPressed ; Do Something EndIf EndIfEndEvent