I just tried your program and it works good, nice example of how to do keyboard echo.
If you are still having issues that I ddin't see please let me know, i'm using a test version of Phrogram for my testing
Thanks