Fixes text filtering being 1 char behind

Fixes problem introduced when switch from keyup to keydown. Now they
are used both.
Fixes behaviour when typing and pressing enter

When typing, pressing enter will select the first from the filtered
list.
Makes the tab key function similarly to the enter key

When filtering by typing, and pressing tab, the selected or first
choice will be selected.
Makes escape key close the select
Makes sure it closes after selecting an option via keyboard
Repair tabbing out & improved other-focus detection

Previous commit broke the tabbing behavior, sorry.
Remove console.logs
Fixes IE bug and follows coding style

Fixes IE bug where options could not be selected by mouse. Also moved
stuff to follow original coding style.
Merge pull request #28 from Frique/master

Some updates regarding text filtering & keyboard usage.