Completed javascript key events and various small things.