Possibly I don't have my application configured correctly, but if I call control.sendKeyPromise(), the application never exits. Not sure if it keeps a websocket alive and node is detecting this or what, but the promise resolves and execution passes through the entirety of index.ts, just the process never exits.
Edit:
https://github.com/matt328/game-time/blob/main/src/index.ts#L28 is my repro.