Suggest using <code>_pe.document.on('keyup', function (e) {</code> instead to be consistent with how event handling is done elsewhere in the file.