function checkSubmit(e)
{
if(e && e.keyCode == 13)
{
document.forms[0].submit();
}
}
Then add the event to whatever scope you need eg on the div tag
<div onKeyPress="return checkSubmit(event)"/>
http://stackoverflow.com/questions/29943/how-to-submit-a-form-when-the-return-key-is-pressed