Maybe we can simply add a keypress event and check that the enter key is pressed ?