added event handler to submit post form on cmd/ctrl + enter