Can't Climb While In First Person

Hello, I’m making a prototype game and I have encountered a bug IDK if its a simple fix or what.

Video: 2023-01-08 16-39-29

I have encountered this issue before in another language Unity.