Thanks ArenMook. That worked great.
Unfortunately once I held down the big button, it wouldn't update. However as soon as I released the button, it would check what was under the cursor, so I did my check then and everything turned out ok.
Not sure what will happen if I have multiple buttons held down, but we'll see later when I test it out.