Stopped keyboard getting focus when opening an instance