Corrected grid size.
Added interfaces for defining keyboard shortcuts.