iPad 2 HDMI out connecter
The iPad 2's HDMI adapter works as mirror for the iPad but only as video out for the iPhone 4. Also it's only in 720p for the iPhone.

the onscreen keyboard being displayed but my best guess is yes unless your using a bluetooth keyboard.

Hope that helps.


  EDIT : it does indeed display the keyboard. When using as a mirror it will only fill the aspect ratio of the iPad but when watching a movie it will fill the screen.