Shift and Control keys out of sync with normal keys over RDP

28

10

I spend quite a lot of time working on various machines via RDP (usually RDPing to one machine and from there RDPing to other computers outside our LAN) and have an issue where the modifier keys (i.e., Ctrl, Alt, Shift, and Windows Key Win) sometimes don't take effect as quickly as standard keystrokes.

For example, if I am trying to type "", I could end up getting 2" because the remote machine gets the first press of the 2 key before it gets the Shift modifier. This causes particular problems with password protected fields (as they often require mixed case letters and you can not see what is typed) and with Ctrl+C (where the highlighted section is deleted and replaced with a C).

(And before anyone asks, this is not just bad typing, otherwise the problem would not be restricted to RDP sessions.)

This does not appear to be a hardware issue as it happens on my desktop (running 64-bit Windows 7) and on my laptop (32-bit XP) and on various Remote computers running various operating systems (from XP to Windows 2008 Server)

There are times when the problem is more pronounced, and it may be related to a slow Internet/VPN connection.

Has anyone seen this problem, and (other than always typing very very slowly, i.e., about one character per second) are there any solutions to this issue?

sgmoore

Posted 2010-12-07T17:52:38.680

Reputation: 5 961

I very often experience this - both lack of synch, and a control key getting 'stuck' - specifically, Shift. Then I started getting CAPITALIZED TEXT TYPED IN or issuing commands I did not wish to issue. – einpoklum – 2013-09-11T18:11:39.027

I would user a bounty on this question if I had more reputation on SU... would be very glad if you decided it's worth risking the 50 points. – einpoklum – 2013-11-13T16:12:33.753

I use RDP a lot and never experienced that. What utilities do you have running on your systems? Does it have something like AutoHotKey? What version of RDP? Does it always happens? Have you trying using the machine locally just to be sure it is not something RDP-related? – Luiz Angelo – 2013-12-22T19:27:37.673

Answers

6

It is the way the RDP client responds to control keys. To resolve, try going into the options for the Remote Desktop Connection, Local Resources, Keyboard - change to "On This Computer".

Be aware that alt-Tab and similar commands will now run on the local system.

JTB

Posted 2010-12-07T17:52:38.680

Reputation: 77

1The RDP Keyboard "On This Computer" setting was the only thing that successfully resolved the annoying issue for me. To replace the alt-Tab on the target machine, I'm using switcheroo.io, which is an open-source project on GitHub. I find it even better than the original Win7 alt-Tab dialog. – V-R – 2015-12-30T11:42:12.043

Does it override the ALT-TAB key or it still switches on home machine? – Gennady G – 2017-03-20T10:14:27.140

3Tried that, but it did not help. (It did mean that the alt-tab did not work on the remote computer, so the setting was in effect) – sgmoore – 2010-12-17T17:53:18.927

1I second @sgmoore's report: Restricting key combinations to the local computer does not avoid this problem. – einpoklum – 2013-11-15T19:10:14.920

1

It's not "free" but some gamepads let you map buttons to key combinations...think out there mouse or numpad with wrist pivots(i think asus makes one). this MIGHT solve you problem....not 100%, but if it sends a combination it could. the slowing down of modifier keys could also be a cheap attempt at not passing on control sequences(if this turns out to be the case i would look in to VNC server/client as it's a busted solution)

RobotHumans

Posted 2010-12-07T17:52:38.680

Reputation: 5 758

Don't think this will help unless the gamepad has keys for every single key-combination, eg a key for 'a', another for 'A', another for Ctrl-A, another for Alt-A etc. Also I've used VNC in the past, always tried to replace it with RD or Logmein where possible. – sgmoore – 2010-12-10T09:17:37.290

true enough, I didn't know if you were stalling on a single key combo or a bunch of them – RobotHumans – 2010-12-10T11:06:06.107

1

I've found the solution to this where one is using nested instances of Microsoft's Remote Desktop client. Imagine the following situation. You're sitting in front of an OS X machine, and you remote desktop into a Windows 7 laptop. From the Windows laptop you want to remote desktop into another Windows machine (in my case a work box over VPN). The solution to your keyboard mapping woes is: on the Windows laptop, i.e. the destination of the first jump, change the remote desktop hardware settings for the 2nd jump to use the local keyboard, not the connecting one.

Edit

To change the setting:

  1. Open de Remote Desktop Client.
  2. Do not connect to a remote host, yet.
  3. Click button Options.
  4. Open tab Local Resources.
  5. Choose option "On this computer" in drop-down list de Apply Windows key combinations.

Although this setting does not seem to apply to simple Shift-key combinations, it did solve the problem for me, when working with nested remote desktops.

Of course, it comes at a price: you cannot Alt-Tab through the windows on the remote host, etc.

Tom Kirby-Green

Posted 2010-12-07T17:52:38.680

Reputation: 11

stop suggesting Apply Windows Key to remote. Its the first thing we all try. Its right there in the menu settings not hard to miss. This is a deeper rooted problem. – Christian – 2019-01-16T10:38:22.880

1Where exactly do you change the 'remote desktop hardware settings'? – sgmoore – 2011-09-14T17:31:35.480

I don't think the OP asked about nested RDP sessions. – einpoklum – 2013-09-11T18:10:37.257

This doesn't work - see the comments on this answer

– einpoklum – 2013-11-15T19:11:08.410

0

In the remote session, press Shift+Control and hold. Release the Shift key. Release the Control key.

To duplicate problem, reverse the order of the key releases. A Microsoft RDP bug.

user617145

Posted 2010-12-07T17:52:38.680

Reputation: 1

0

Some more workarounds :

  1. Run Remote Desktop as Administrator.
  2. Uninstall IntelliType if installed. You may use instead X-Mouse Button Control.
  3. Disable TCP Auto Tuning.
  4. Reduce color depth / resolution / background.
  5. Disable any keyboard product such as AutoHotKey.
  6. Fully patch Windows Update including all optional items.

harrymc

Posted 2010-12-07T17:52:38.680

Reputation: 306 093

>

  • Will Try and see if the problem manifests; what's the intiuition for such a measure having an effect? 2. If IntelliType does not appear in the Programs list (for uninistallation), might it still be installed? 3. My Windows 7 is fully-patched.
  • < – einpoklum – 2013-12-19T11:58:39.253

    start="2">

  • Probably not.
  • < – harrymc – 2013-12-19T12:42:17.880

    I'm not immediately seeing the problem manifest, but as it doesn't always occur immediately we'll go into extended trial... why do you think running the RDP client as Administrator helps? Especially for a user who is an Administrator? – einpoklum – 2013-12-19T16:22:40.483

    A security feature since Vista : Everyone runs under a restricted account, only "Run as Administrator" is unrestricted. – harrymc – 2013-12-19T17:01:41.313

    Unfortunately, this did not work - although it seems the frequency of the 'sticky shift' phenomenon decreases when RunAs'ing as Administrator. Or perhaps I'm just not performing enough repetitions of the experiment. Anyway, no cigar. – einpoklum – 2013-12-22T23:16:22.643

    More attempts on the cigar : (1) Disable TCP Auto Tuning, (2) Reduce color depth / resolution / background, (3) Disable any keyboard product such as AutoHotKey.

    – harrymc – 2013-12-23T09:36:32.173

    >

  • Will try this at work later this week. 2. Already did that. 3. My server machine certainly doesn't have that, I'll check whether I have this kind of junk on the client. Anyway, from the looks of it you'll get the bounty for effort.
  • < – einpoklum – 2013-12-23T21:09:47.293

    Let me know how it goes. – harrymc – 2013-12-23T21:13:46.623

    Haven't had time to test this, but you get the bounty anyway. No sense in wasting ~15 of my entire reputation for nothing. – einpoklum – 2013-12-26T09:20:41.443