ShowMouseCursor (true) Not Working

Ok I found out the problem. When you make your selection the widget and cursor are removed, then when you release the tab key, the code in the picture executes again so the cursor is then removed again.

So now the problem is, when I go to select a spot to place the building, I have to double click as if the window is not in focus.