Fix selection (allow \r and \n keys).