handle ctrl-s, ctrl-r