Ensures that key trigger changes will not affect the test behavior

It doesn't simulate exactly each typed character, but at least fix the
build and deal with most cases.