Minor clean ups.
Move all the SIGWINCH stuff inte handle_keys().
Move the actual CSI command scanner out of handle_keys().