Switching from input to keyup event removes need for a setInterval

Fixes #39
Fixes #31
Closes #31
Formating