Actually add CaretListener. Closes #24.