I would like to know if there is any feature to assign a keyboard shortcut to hide the cursor.
say cmd+H to hide the cursor and when I move it, it should be visible again.
Use the "Show/Hide Mouse Cursor" action:
However it will only become visible again if you hit cmd+h again.