move keydown handler for editable messages