Since you mentioned you had an issue with the key switch, possibly you still have a bad switch internally or something loose with the wiring behind the key switch…?
That or the smoke got something hot/burned something, blew a fuse or wire is damaged somewhere between the helm and engine.
Where...