Implemented shift+tab and shift+enter behaviour