Scene Viewport Navigation messed up

A while ago while I was messing around in the level editor, my navigation controls started acting weird. Now a lot of times the camera will continue moving in the last WASD direction I was holding after I’ve let go of that key, so long as I’m still holding down the RMB. I can press another direction and it halts the camera movement, but as soon as I stop pressing that key it continues moving in the old direction until I let go of the mouse. I wasn’t able to pinpoint what may have caused this change and I’ve just been dealing with it since, but it’s finally got annoying enough for me to ask if anyone knows a solution to this.