Fixing a bug where single-character strings sent to press() were dropped. Added a unit test for this bug.