remove hack for ie
fix init bug, 'keyup' event was removed so use 'keydown' instead
remove unused code
add back 'keyup' event