The problem is that it seems to react twice to every keypress, and I don't have a clue what can be done about it.
If anyone could help me with this I would be very grateful. Here is a piece of code.
Code:
	
----------------------------------------------------------------------------------
while (truFals)
	{
		Sleep(1000);
		GetNumberOfConsoleInputEvents(h, &eventcount);
		if (eventcount > 0)
		{
			ReadConsoleInput(h, &input, 1, &read);
			if (input.EventType == KEY_EVENT)
			{
				switch (input.Event.KeyEvent.wVirtualKeyCode)
				{
					case ESCAPE: truFals = FALSE; break;
----------------------------------------------------------------------------------