Sorry I though you didn't want to pick the same instance but pick randomly. might have misunderstood.
then just run the loop without needing the keypress.
-on key press, set bool to picking
while picking true run the loop you have
-then if uid =/= lgn set picking to false