Bugfix: we also need to make sure we're not dealing with the body class element from the RTE when finding out where the Enter button was pressed, so we need to test for the parent to be different from null.