Calling a function used on eventListeners elsewhere

Hello there fellow wizards!

I got a pickle for you:
I have a function that is currently connected to an event listener like this:

loginButton.addEventListener(MouseEvent.CLICK, loginOnClick, false, 0, true);
function loginOnClick(event:MouseEvent):void{
   // Login code.
}

Right now I’d also like to call that same function using the ENTER from a keyboard since loginOnClick doesn’t use the parameter received (event:MouseEvent). So I did this:

function keyboardListener(event:KeyboardEvent):void{
if (loginButton){
   if (event.keyCode == Keyboard.ENTER && loginButton.enabled) {
       loginOnClick(); // Generates an error because it doesn't have a parameter.
   }
}
usernameTextField.addEventListener(KeyboardEvent.KEY_DOWN,keyboardListener);

Problem is, of course, AS3 doesn’t let you call a function with the incorrect number of parameters or types.
I tried following senocula’s tutorials on functions and parameters but they don’t seem to work on this very specific issue considering the parameter is an event reference.

Is there a solution for this or do I have to make a new function with the same code just for that?

Cheers!