I am trying to bind C-d to a function (specifically, setting an exit flag). It works, but only when the current line is not blank. It appears that this behaviour is specific to C-d, as I have no issues when I bind other keys.
See the Stack Overflow link for a short example which demonstrates this behaviour.
On a side note, excellent work on the library. I am extremely impressed at how easy it is to integrate such powerful functionality into my programs.