This script is posted by McVarial from the server SKC. There is a bind on the server with f3, that toggle the cursor.  
Btw, i think you must bind it : 
bindKey ("F3", "down",                            -- binds F3 key to toggle cursor state 
        function() 
                showCursor( not isCursorShowing() ) 
        end)