You can update a streams game and title through the Twitch API using the Update Channel endpoint, but if you want to do it through a 3rd party library like TMI.js then you’ll have to follow their docs and contact them for support if you need it.
As for shortcuts, you can program commands to do whatever you want.