fixed key handling cross browser
hope.editor now uses the fragment code