Use the mouse the lockpick will follow. Click to pick and space to confirm (only needed if you actually picked)
Idea thanks to a scratch jam, Coding by @MGreat7