From Garry's Mod
Runs when a IN key was released by a player.
This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.
"hi" will be printed to the console when the player releases the IN_USE (E) key.
function GM:KeyRelease( player, key ) if ( key == IN_USE ) then print( "hi" ) end end