Added button listener for all windows so enter clicks button