Combining selectors with different triggers

Combining selectors with different triggers

Hello,

I have the following

  1. $('#Login').keypress(function(event) {
          if (event.keyCode==13) {
  2.       //Call function with name "FUNCTION"
  3.       }
  4. });
  5. $('#Login input[type=button]').click(function() {
    //Call function with name "FUNCTION"
    });

Is there any way to combine these 2 pieces as they call the same function?

Thank you for reading.