Removed jquery and use keyup instead of keypress

Hi, 
Thank you for this directive, 
I really wanted to use it but I hate jquery so I removed the dependency on it. 

Please revise and let me know what you think.