Fix Enter key behavior in Firefox

Fix Enter key behavior in Firefox by ensuring that 'event' is
defined in the relevant functions.

Tests OK in Firefox and Chrome on OS X, Android, Mobile Safari on
iOS.

Signed-off-by: Jeff Godin <jgodin@tadl.org>