Refactored call in keycode event to call function