This is a bit of a thorny patch since each device does this differently and have weird quirks. Would still be nice to try and do the single-key output case, "garden path".