Patch for: T31671
The keyboard sensor looks for the escape key, and if it is used by the sensor it will call HookEscape() blocking the escape key from exiting the game. Since Moguri's change the user can now specify what key exits a game, however, the keyboard sensor still only looks for the escape key. Meaning that if a keyboard sensor uses the escape key, exiting is blocked regardless of what key binding is used to exit the engine.
This patch passes the assigned exit key to the keyboard sensor during conversion, so that it calls HookEscape() only when the assigned exit key is used by the keyboard sensor.