Fix for GUI Locking in Editor scenes - Feature/editorinputlocking

I made a typo in the check for whether the window was open - gui.enabled instead of guiEnabled.

This pull request fixes that