Trying to dock with the swing keel up. If it is all the way up, you don't have much lateral resistance. So, you have two problems. First, you will tend to go whichever way the wind blows you. The only thing you really have to resist this is the rudder and the motor. That means that all of your resistance to lateral movement is in the back of the boat. That means that the whole front of the boat is at the mercy of the wind. This is a problem because the mast, which catches a lot of wind, is way forward of the rudder.
The second problem is related. The boat likes to pivot around the keel. This is what gives you controlled turns. The keel gives you some bite around the center of the boat, around which the boat pivots. Without this, you are almost a jet ski. The rudder gives you some control, but you really need to turn your outboard to push the stern in the direction it needs to go.
My advice would be to put the keel as far down as you safely can. Even just a little bit of keel will help. You really don't need much, but your boat will handle better with it down, in particular when navigating tight spaces. Also, turn your outboard with your rudder to give you more directional control.
Here's another thing that kind of sucks. The faster you go, the more control you will have, in particular when dealing with side winds. But, of course, slower is safer.
I navigate the locks regularly where you don't have a lot of maneuvering space and you don't really get do-overs. I have found that, in particular in side winds, that it is best to steer right up with a little bit of speed rather than to approach tentatively. This keeps the boat tracking in the intended direction better with less side-slipping.