Helper to detect holding a key