Setting Mouse Upon Inputs

Godot Version

4.6.3

Question

I'm attempting to set up a mouse mode where it is confined unless you hit "escape", to which the mouse is visible and the Camera cannot move. For some reason though, it isn't working and just leaving my camera to be confined. I'm a new developer so any help would be outstanding.

Camera Code:

Main code:

You _unhandled_Input function has a capital I, change it to a lower case i


Make sure to paste code instead of screenshots