Greyed out quantise presets and grid type making cubase unusable

I cannot ungrey the quantise preset dropdown (where I select note value) or grid type in the key editor, making cubase unusable. My cat walked on my keyboard so I am not sure what happened. The grid has gone to 10ths and I’m composing in 16ths. How can I resolve this?

It looks like the ruler is showing a time format rather than Bars + Beats. Change it back by right-clicking the ruler and chosing from the context menu.