Ah yes, I'm familiar with this bug :( It plagued every hour of my development.
Apparently, it's a bug with the version of Unity I used. I found a workaround which was to switch the game to windowed mode and then back to full-screen mode to fix it!