A little event code handling.
A lithe more event code handling.

Still not quite where it needs to be for keyboard navigation thought.