what is the role of key pair in creating instance

It helps us to login to the instance in a secured way.

what si the role of RDP

RDP help us to connect and control windows or server remotely using a graphical user interface(GUI).

what is RDP?

RDP is a remote desktop protocol , which helps to connect to another computer remotely. Internet connectivity is essential to do this.