attached keydown handlers globally so that defocusing terminal can happen with ctrl+space, made cwd-status to start long polling once invoked