Improved keyboard support

As you mentioned in an e-mail, when focus goes from sub-menu to a non-menu link, there is nothing to remove the `openSubmenuClass` class. This patch fixes that by listening to both the `focus` and `blur` events.