To behave in a foolish or clueless manner.
Heard in Kerry, Dublin and Waterford
Also spelt Act the mickey
In useThe ref is looking round and acting the mickey
Lawrence Muck's posh English Here it is in posh English.
The referee is gazing about and behaving like a complete fool.