Added option to specify event type ALL, TAB or default to Enter key