Cleaning up the keyboard script and adding JSDoc.
Minor update to the JSDoc for the Map module.