If KeyID is an integer containing the value obtained from the query string parameter passed into the view control, you can pass it to the method EditUrl (defined in PortalModuleBase from which your module controls inherit) and then use the resulting URL string to either set the NavigateURL property of a link button or image button or force a redirect to this URL to transfer to the edit control as follows:
Dim myEditURL As String = EditURL ("KeyID", KeyID.ToString())
lnkEdit.NavigateURL = myEditURL
' ************* OR - in the button click handler ******************
Response.Redirect (EditURL ("KeyID", KeyID.ToString(), True)