Refactored keyboard dismiss code to MessageListViewController