RDP sends mostly-raw keystrokes through the connection. On approximately all terminals other than the default MacOS configuration (Windows, Linux, BSD, DOS, etc.), you can go to the start of the line with Home and to the end with End.
Of course, Mac laptops don't ship with those keys. However, Apple's external keyboards usually have them (unless they're compacted down to laptop-size, which misses some of the point of an external keyboard), or you can use a Windows keyboard. You may also be able to set up a chord with the keys you have that sends the target app the same keypress events as Home/End, which would work as long as the OS traps that chord before sending it through the RDP connection.
As you said I don't have these magic keys. Sorry I didn't specify that I'm using MacBook to work. External keyboard that's not what I'm looking for. But thanks for your suggestions. – Piotr Gogolin – 2017-11-07T08:23:22.000