Input is now done through the window, little buggy though