Hi..

my problem is with keyboard input using allegro. what i'm trying to do is fairly simple...i have a Status indicator box that you can toggle on and off. right now i have it set up so that pressing the S key will toggle it. i have the function that toggles the box tied to a timer that will call it every 125 milliseconds. now is where my problem comes in.

the user has to press S at just the right time for the box to come up, or hold it and then let go very quickly so it won't turn off the instant it turns on. how can i make it so the user has to press S once to turn it on, and let go of the key and fully press it again to turn it off?