Detect mouse button more correctly