Specified typings for functions returning void

-- note that removeKeyMap in codemirror.js returns true sometimes
-- but I think it should only return
Merge pull request #1432 from markwongsk/master

Specified typings for functions returning void