Welcome to JustAnswer, my name is XXXXX XXXXX X'm here to help get your problem resolved. Ask follow up questions, thanks.
The keyless entry works with the passenger door module which sends signal to the body control module to follow through with functions. Considering remote doesnt work from far away and directly controls the passenger door module that is where I would start with the issue by replacing passenger door module. Let me know if you have questions, thanks.