Change 'keypress' javascript for jquery 1.10.1