Well i want to create an Online Role playing game. But there a few questions i have

1) How do i make a log in form for characters and stuff?
2) how do you make "Sprites" become the default control, and how do i make the arrow buttons control movements, make certain key presses do certain things etc
3) Do i need a server to host a game? Or can it run off my pc somehow
4) If you have msn messenger please leave it so i can ask for further help

Thanks!