Thank you for the question. The EZ-220 does feature a USB-to-Host post to connect to a Mac, iPad/iPhone or Windows PC. If connecting to an iOS device, you'll also need Apple's Camera Connection Kit adapter. Once connected and set up, the EZ-220 can transmit and receive MIDI data (notation, etc) for sequencing and composing.
However, it doesn't transmit audio (the actual sound of the keyboard); for this, you would need to use the EZ-220's PHONES/OUTPUT socket connected to a suitable audio interface.
Instead, you might want to look at our PSR-E363, PSR-E453, PSR-EW300 or PSR-EW400 (or our MX, MOXF and Montage Series synthesizers). All of these models transmit both MIDI and audio via USB, massively simplifying a recording setup. Additionally, models from the PSR-E453 upwards have even better sound quality.