As long as there is a form around the input elements that you wish to submit via ajax, it should work. I see you are using event.preventDefault(). Some browsers require a different method, namely by adding return false; to the end of the function. I always use both at the same time when creating such functions.
For the rest I don't see how the enter button shouldn't work as expected.