One way to do this is to set a boolean true on press, and to set it false on release.
Then use the event tick to do you action based on that boolean.
Hope this helps.