you can of course implement a general function to check this. store all your keys you want to survive with their scancodes in an array (forget about the unused space this time, you could also use a dynamic list or something). then, per frame, work with key_pressed to store wether a key has been released this frame (you had the correct code in your last sample). write a small function which returns your release state. approximately 20 lines of code.

joey.