Rebind keypress to element after unbound with one() method ?

Rebind keypress to element after unbound with one() method ?

I'm trying to rebind a button that was previously unbound with the one() method, like this:

  1. $(document).one('keypress', 'button', function(e){
  2. // do something once here ...
  3. }).on('keyup', 'button', function(){
  4. // How to rebind keypress to button  ?
  5. });

Because the keypress event triggers non-stop while a key is continuously pressed, I use the one() method to trigger function only once, and because I need keypress in order to use String.fromCharCode(e.which), how can I rebind button to keypress using the keyup event?


UPDATE

Here is a fiddle to demonstrate https://jsfiddle.net/8jbt58t5/1/ I