pass arguments to keypress handlers according to parameter names