Keep window open until input