bug(computer-use): Return key is not delivered to Pygame windows
Open 💬 1 comment Opened Jul 26, 2026 by Orinks
Summary
Computer Use can navigate a Pygame menu with arrow keys, but its key-injection call reports success for activation keys while Pygame receives no corresponding event.
Reproduction
- Open a simple Pygame window that records keyboard events.
- Target the window with Computer Use.
- Send the
Returnkey with the desktop-control key API.
Expected behavior
Pygame receives a KEYDOWN/KEYUP event for Return, allowing Enter to activate a menu selection.
Actual behavior
Computer Use reports the key was sent, but the Pygame event log records no Return event. Arrow-key navigation works.
Additional observation
The desktop focus step produced an unexpected left-Alt event in the Pygame probe. A hidden probe could not accept input because Computer Use reported that the foreground window had no process identity.
Impact
This blocks automated desktop verification of keyboard-driven Pygame workflows. Manual testing works normally; this appears limited to the Computer Use input/focus layer.
1 Comment
Related broader reproduction: this affects more than Pygame’s Return key.
Feedback session:
019fbae0-5e34-75f1-9bc8-adbed9b80a2dEnvironment:
26.727.408161.2.3.1 CL#495413(Unreal Engine)Elevated=FalseRUNASADMINcompatibility flagsReproduction:
press_keyforTab,M, orB.type_textlikewise does not invoke game hotkeys.Control tests from the same Computer Use runtime succeed:
Ctrl+A.123+456=and produces579.Escapeand clears its display.Satisfactory exposes no Raw Input toggle in its current Controls menu, and its saved configuration contains no
RawInputorbUseRawsetting. The failure was already reproduced outside exclusive fullscreen and with matching non-elevated integrity levels.This suggests the issue is broader than one Pygame key: applications using game-oriented input paths may reject the current synthetic keyboard backend while still accepting Computer Use mouse input.
Expected behavior: