How do I use the sendmessage api to send commands such as 'enter' or 'ctrl+s' to a program?