keyup event listeners

you don't have to use this, but: i added listeners for "keyup" events, for faster feedback, and restructured the code a bit. you will see.