Reduce magic constants by explicitly declaring keyboard constants

We make a list of available hotkeys in the browser, with names and a new special type Key(which can be extended as needed).