Moved check for input into windows.c