My viewpoint is stuck at an angle

I was using unreal engine for the first time, going along wight he tutorial when I somehow locked my viewpoint at an angle. Any ideas on how to fix it? I’m using a Mac if that helps.

(Also the tutorial told me to lock shape onto a plane using the “End Key” my keyboard doesn’t have one, is there a Mac equivalent?)