Terminal prev/next key addition