ignore keypress if key is null or undefined

fixes #4
Merge pull request #5 from eyko/master

Unhandled TypeError on non-alphanumeric keys