KeyCapture: Fixed syntax errors and removed some tests from running on Android (Windows only)