yay on-enter wasn't actually too hard