diff --git a/Standard Gaming Platform/sgp.cpp b/Standard Gaming Platform/sgp.cpp index 6ff38bb5..bb403517 100644 --- a/Standard Gaming Platform/sgp.cpp +++ b/Standard Gaming Platform/sgp.cpp @@ -545,13 +545,13 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP g_Console.Create(ghWindow); cout << "LUA console ready" << endl; cout << "> "; + + // Reset the pressed keys + gfKeyState[ ALT ] = FALSE; + gfKeyState[ 219 ] = FALSE; // "\" #endif } - } - // Reset the pressed keys - gfKeyState[ ALT ] = FALSE; - gfKeyState[ CTRL ] = FALSE; - gfKeyState[ 219 ] = FALSE; // "\" + } } break;