[Toolkit.Input] Fixed duplicate keys on .NET 2.0 platform.

The fix in https://github.com/sharpdx/SharpDX/commit/b936644bd1a2a6e325113716606c31eed302adb4 is correct, however I have added compiler directive around it to avoid unnecessary calls on other platforms as HashSet<T> ignores duplicate entries.