end editing on enter

working but in no way ideal and a little buggy