fixes #1 and add keydown event tests