Code refactoring of documentation opening feature

Based on the kind feedback of @spadgos I did some refactoring.

- Replaced the try/catch blocks if statements and sanity checks
- Moved the docs opening keyboard shortcuts from OSX to Default map
- Removed the debug prints