Maybe try disabling the built-in controller support by pressing F3 and then using a program like Joy2Key to bind the keypresses to the buttons of your PS4 controller.