How can I access PlayerController0 ?

Hello Vaibs, Welcome to the Forums.

Not sure about your mention of Play mode. (when you exit play mode, wouldn’t your regular mouse cursor reappear?)

Try running this logic:

(It can be ran anywhere, but in screenshot I put it inside of the Level Blueprint)