I don't see how making ESC print something would provide me with any additional information. I already know that keyboard input gets responded to instantly.
And debug messages if I can work out a way to see them will almost certainly show me that it freezes at that fullscreen set graphics line.
As for it being some kind of clean up, that was the first thing I suspected but the fact that the delay happens when going from windowed to fullscreen and then never again doesnt really fit that theory.
I'll see if I can prove it's locking up at the graphics line though. Maybe I can have it play a sound.
And debug messages if I can work out a way to see them will almost certainly show me that it freezes at that fullscreen set graphics line.
As for it being some kind of clean up, that was the first thing I suspected but the fact that the delay happens when going from windowed to fullscreen and then never again doesnt really fit that theory.
I'll see if I can prove it's locking up at the graphics line though. Maybe I can have it play a sound.