remove mouse.position attribute
use e.which instead of e.keyCode
add touch events for ios