Fix keyboard shortcut
Created by: gabtorre
The shortcuts for toggling the History Panel and Line Wrap were not working on Mac because alt+h and alt+z are used to create special characters instead of returning key attributes. To fix this I replaced KeyboardEvent.key with KeyboardEvent.code.