Keyboard shortcuts problem

I am using an imac and an keyboard keyboard but for some reason it keeps loosing connection to my shortcuts. when I quit and re-boot its ok for a while then suddenly the connection goes- any one got a similar problem?

It’s hard to understand your question. Is there a typo?

Do you mean computer keyboard, or MIDI keyboard? What is the device? What is the connection? Is it connected by USB or MIDI? Does your iMac have USB 2, or is it new, and does it have USB 3 only?

If it’s computer keyboard, is your virtual keyboard on the Transport Panel of Cubase, switched off?