Use keydown for key press detection in chat.

Fixes tab completion in Chrome. Closes #45.
Merge pull request #50 from firetech/fixes

Use keydown for key press detection in chat.