logic does have a built in musical keyboard

I dont use it much, it might be in the "view" dropdown menu, if not it can be found in the help search

G