Does anyone know how to express that you want something to happen if you release a key? I would really save alot of problems, but I cant find a wa yto do this.

example:

if (key_s is released)
{
do this.....;
}


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly