Shortcut to change the buffer size?

Is it possible to get something similar to Logic Pro, where the buffer size is 64 when playing via Midi and automatically 2048 when listening?

Or the ability to create a shortcut to change the buffer size?

Thank you!
Stefan Schnabel

You are aware of low latency mode? That’s what I use when recording MIDI or audio where alatency is an issue. That’s a single click/kbd shortcut.

Yes, I recognize this mode. Thank you for the idea.
Unfortunately, this does not compare to the function in Logic that runs in the background.

I´ve done it with Touch Portal where you can set a sequence of mouse clicks.
Surely it can be done with other apps too.
There´s no way of doing it inside Cubase.