Implement readline-style Ctrl-U and Ctrl-Y