Prevent digest cycle problem on enter/tab

Wrap function calls in the _onKeyDown function in $timeout to prevent problems with the digest cycle after selecting an item using the keyboard (i.e. tab or enter).