Been working on my event loop, and noticed something that I wasn't expecting.
When you hold a key down, is it suppossed to spam 'KeyPressed' events, followed by a single 'KeyReleased' event when you let go, or am I reading the events wrong somehow?
Ok, did a little test. Apparently it has to do with the keyboard repeat rate in the Windows Control Panel. KeyPressed Events are fired at the same rate that you select there. Any clue how to avoid this (other than disregarding key pressed events until you find an appropriate keyreleased event, which don't get spammed)?
Further research would seem to indicate that this is how Windows is suppossed to behave. Since I was using a toggle anyway, it doesn't actually matter if I receive a lot of KeyPressed events as long as they don't alternate. So consider the question solved.