How Do I Record Aftertouch And Pitch Control At The Same Time?

AFAIK the MIDI-mapping dialog does not accept pitch bend or after-touch, only MIDI-CC and note messages.

I have created a replacement for the standard keyboard which you can try instead. Still beta, but I think you’ll get the general idea?