cd4ab9307c made these tests fail because they were basically pressing and releasing a key in a single frame, which hopefully never actually happens in real scenarios. (It's a bit tricky to determine if it can.)
cd4ab9307c
Nothing fancy, just basics to ensure the subsequent commit doesn't break anything.