How to bind a key to rotation with specific increment

Hi everyone,

I’m looking for a way to create a hot key (for example Z) for fixed 45 degrees rotation. So I can use my keyboard for quick rotation in editing mode. Is there a way?

Thanks!