Jim Lubin has pulled together a number of relevant resources here for using Morse Code for computer access / AAC:
Jim is a member of the ATMakers Facebook group and uses a sip and puff switch with a (no longer available) AdapTek Interface Adap2U Adaptive Input Interface System to access and control a computer with Morse Code. I think ATMakers was working on a new device for Jim, but unsure of its status:https://github.com/ATMakersOrg/AirTalker
@MMC_Milad has developed a Morse Code library called EasyMorse (https://github.com/milador/EasyMorse) that is used by the FAIO Sip and Puff switch he designed (https://github.com/milador/FAIO_Sip-And-Puff).
The other open source Morse controller project I am aware of is Morse2Go, which is a Morse-to-speech device. It looks like development stalled some time ago.
Site: https://www.morse2go.org/ (Now defunct)
Wayback machine: https://web.archive.org/web/20180419181040/https://morse2go.org/