Perhaps the two calls to SetActive(true) in Application.cpp could be combined into one in ProcessMouse slightly further down?  It seems to me that as long as it's a mouse action you can activate it towards the bottom of ProcessMouse() - any other actions don't need the activation.