c# backspace simulator - deletes entire word instead of just a letter?
<p>I am writing a simple C# program in which when I press "ctrl+g" I want my program to automatically delete the character directly left of the cursor in any program (ex: chrome browser, word document, powerpoint document, etc...). 
I have installed a global hook for "ctrl+g" and it works fine.  I am using a keyboard simulator that I found from codeproject: <a href="http://www.codeproject.com/Articles/28064/Global-Mouse-and-Keyboard-Library" rel="nofollow">http://www.codeproject.com/Articles/28064/Global-Mouse-and-Keyboard-Library</a>
My issue is that when I simulate a backspace like so:</p>

<pre><code>KeyboardSimulator.KeyPress(Keys.Back);
</code></pre>

<p>the entire word is deleted instead of just the character to the left of the cursor. For example, if I am in a Microsoft Word document with the following line of text:
"Happy new year" 
if my cursor is at the end of "year" and I press ctrl+g, my program deletes "year" and puts the cursor just to the right of "new" instead of just deleting the letter "r" of "year".
I have tried other simulators as well with the same result.  Does anyone have a solution or know what I am doing incorrectly?
Thanks.</p>
