Respond to multiple KeyDown events
I'm making a simple WinForm car race game. I've got two objects - cars, and they move on the form when key is pressed (Form1KeyDown_Event). The only thing is, that when one player press a key, the other player cannot press his key (nothing happens). But when the first player releases the key, second player can press one his keys and normally control his car. How can I listen for two player keys simultaneously? Should I use threads and have each car on its own thread? Here's a simple example of what you can do in order to listen to several keys at the same time, using the keyup and keydown