// its C# BTW :) // checks if INPUT_CONTEXT has just been released // assumes `using static CitizenFX.Core.API;` if(IsControlJustReleased(1, 51)) { // run code here }