Clear pending keystrokes when an action is dispatched (#3750)

This prevents the `cmd-k` keystroke, which clears the terminal, from
staying around as a pending keystroke on the parent workspace.

Release Notes:

- N/A
e5ce5e8692Nathan Sobo committed on 12/21/2023, 3:50:59 AM· committed by GitHubparents4680aad5747c9b
3 files changedLine totals unavailable