Shift button sticks on remote machine

When I use the shift button on my Mac it seems to stick on the remote machine.