Once you've got Alohomora, approach a locked door and activate it to cast the spell. This begins your average lockpicking minigame where you have to use Q and E to align a green spark, and A and D to align a red spark—this uses dual sticks on controller. As you move them you'll notice that the cogs on the right side and in the middle begin to move. Your objective is to position the green spark and red spark so both sets of cogs are spinning. After that's done the door or chest will unlock, letting you access what's inside.