Issue with Mouse Cursor and Camera When Closing a Widget in Unreal Engine 5

Hello, I’ve created a menu to interact with an object. When I press the ‘C’ key, it opens a widget that I created. The problem is that when I close the widget using a button I’ve made, the mouse cursor appears and the camera is not the same as before. Does anyone have a solution, please?