fivem is control pressed code example
Example 1: FiveM pc key code
// its C# BTW :)
// checks if INPUT_CONTEXT has just been released
// assumes `using static CitizenFX.Core.API;`
if(IsControlJustReleased(1, 51))
{
// run code here
}
Example 2: FiveM pc key code
-- its Lua BTW :)
-- checks if INPUT_CONTEXT has just been released
if IsControlJustReleased(1--[[input group]], 51--[[control index]]) then
-- run code here
end