Fixed keyboard navigation.
Updated code format.
Enhanced tests.