How to hook into onKeydown callback in native MainActivity with expo module API?

Hi, we need to use react-native-keyevent to listen on keyDown event to get input data from external scanner, the library require to overwrite onKeyDown method within native MainActivity, but the android lifecycle listeners expo modules provided now seems only support Activity lifecycle callback only, is there any way we can overwrite onKeydown in EAS build? Or is there any other way we can listener on keyDown event? (without eject)