Remove the check that exits when the shell is non-interactive, so that the key bindings will work for the read command, when used by scripts.
Remove the check that exits when the shell is non-interactive, so that the key bindings will work for the read command, when used by scripts.