Here is the biggest challenge. Yamaha’s official website has updated its legacy driver architecture. The DGX-230 is no longer listed on the main "Downloads" page for new instruments. You must search for the (or newer), which is a universal driver compatible with nearly all Yamaha USB instruments made between 2005 and 2015.
If you cannot get the official Yamaha DGX-230 MIDI driver to work, or if you are on a Chromebook or iPad, use these workarounds. yamaha dgx-230 midi driver
If you only need to record key presses, you do not need the official Yamaha driver. Here is the biggest challenge