piano lesson does not recognize Keyboard

I have a Casio CTK-2500 (non midi, non usb keyboard) connected to garage band through audio out and a Bheringer UM2 interface. I can record a track, but I have to listen in direct monitoring while playing or there is no sound on th eheadphones. If I then go to piano lesson, I get the “there is no instrument attached to garageband” message.

I just updated to 10.3.1, everything lese works fine, including my electric guitar

Can I fix or is it the nature of the keyboard I am using?