Keyboard freezes upon hiding and showing layers

I’ve recently ran into a bug/issue where my keyboard freezes/stops working basically isn’t registering any inputs pressed by the user. This happens when i hide and show a particular layer. If anyone knows why this happens please let me know the issue, all the help is appreciated.

Can you provide a screen snip of the events around the keyboard input and the hiding & showing of a layer?