I have an input field and a login button. I want to allow users to hit the \"enter\" key to click the button when the input field is focused. How would I do this with jQuery?<
You don't need jQuery for this, just change the button to type="submit":
type="submit"
Then the will submit all by itself when you hit Enter inside the text input.