if Input.trigger?(Input::Key) # checks for one-time key activation
# stuff
end
if Input.press?(Input::Key) # checks if the key is pressed (for an unlimited amount of time)
# stuff
@temp_trigger = true
else
if @temp_trigger == true # if the key has been released
# stuff
@temp_trigger = false
else # if the trigger hasn't been pressed after this if statement has been executed
# stuff
end
end