Reimplemented the onKeyListener in the ChatFragment